where char is 1 byte in 32 bit system weather it is signed or unsigned.
from this bellow program why it is printing it as 32 bit number when it is signed ? I'm running this program on 32 it w7.
out putCode:#include<stdio.h> int main() { unsigned char a; a= 15; printf("%X",a); a= 255; printf("\n%X",a); return 0; }
F
FF
FCode:#include<stdio.h> int main() { char a; a= 15; printf("%X",a); a= 255; printf("\n%X",a); return 0; }
FFFFFFFF