program problem
Posted: Sun Mar 04, 2007 2:54 am
- Code: Select all
#include <stdio.h>
main(){
int x = 9;
int size;
size = sizeof(x);
printf(“The size of x is %d bytes.\n”, size);
}
when this program runs it's supposed to type the words "the size of x is 4 bytes.but it doesn't work, why is that?