c - What is wrong with sizeof program -
i have made program display number of bytes required store values of type int , type char using sizeof operator. however, not compile, says 'id returned 1 exit status'. how fix this?
here code:
#include <stdio.h> main() { int num, num1; num = sizeof(int); num1 = sizeof(char); printf("bytes required int: %d bytes required char: %d\n", num, num1); getchar(); }
thank you
the code correct, perhaps can try copy code , paste on new file, , delete old one. hope works :)
Comments
Post a Comment