Download CS240 Programming in C
Transcript
Representation of Numbers in Memory Integers are represented in groups of 1 byte (char) 2 bytes (short int or short), 4 bytes (int) , 8 bytes (long int or long) and in some architectures 16 bytes (long long int or long long) variables. Example of an 8 byte number in memory 00000000 00000000 00000000 00000000 00000000 10001001 00100100 10010010 63 55 47 39 31 23 15 7 0 223+219+216+213+210+27+24+21= 8987794
Related documents