Sunday, February 6, 2011
Memory representation of int in c
Memory representation of unsigned int:
Total
size of unsigned int: 16 bit
Those eight bits are use as:
Data bit: 16
Example:
(1)Memory
representation of:
unsigned int a=7; (In Turbo c
compiler)
unsigned short int a=7 (Both
turbo c and Linux gcc compiler)
Binary
equivalent of data 7 in 16 bit: 00000000
00000111
Data
bit: 00000000 00000111
First
eight bit of data
Labels:
Data types
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment