- 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?
#include <stdio.h>
main(){
int x = 9;
int size;
size = sizeof(x);
printf(“The size of x is %d bytes.\n”, size);
}
int x1 = 9;
int size;
size = sizeof(x1);
sprintf(text,“"The size of x is %d bytes."”, size);
Users browsing this forum: No registered users and 1 guest