Friday 19 June 2009

Memory representation of int data type in C



Memory representation
of int data type in c programming language



int
may be signed or unsigned both have different memory representation.


1. Memory representation of:



unsigned int a=7;


It is 16-bit data type and all 16 bit is data
bit.
Binary equivalent of 7 is: 111
for 16 bit we will add 13 zero in the left side i.e. 00000000 00000111
Since Turbo C is based on 8085 microprocessor

No comments:

Post a Comment