i have the following code:
int main() {
char x='a';
printf("integer = %ld\ncharacter = %ld\nx = %ld\n", sizeof(int),sizeof('a'),sizeof(x);
return 0;
}
and the output is:
integer = 4
character = 4
x = 1
my question is that in why the size of the char variable x is not equal to the size of the 'a' .
what actually brings the difference?
thanks for the help