char a;
a = 128;
printf("%d", a);
I declare a variable a as char type. and initialize with integer value 128. and I printed it with integer format specifier and I getting output as -128.
Do anybody know the reason?? Why?
char a;
a = 128;
printf("%d", a);
I declare a variable a as char type. and initialize with integer value 128. and I printed it with integer format specifier and I getting output as -128.
Do anybody know the reason?? Why?