Char data types may be signed or unsigned. Size
of char data type is 8 bit. Both signed and unsigned have different memory
representation.
Memory representation of unsigned
char: In
unsigned char all 8 bit is used as data bit
Memory representation of unsigned char a= 7;
Binary equivalent of 7
is: 111
For 8 bit we will add 5
zero in the left side i.e. 00000111. In
the memory:
Here MSD
No comments:
Post a Comment