understanding Variable use
Ok, i know that bits are grouped into 8 and are called bytes. And each byte has its own address to label it. But when I declare a variable of type (int) it will occupy 4 bytes. How does the compiler link the 4 bytes together since each has its own address. Does it combine them into one massive byte? That would seem to defeat the purpose of giving each an address?
Also why is it that an integer value is from -128 to 127? Is this because 0 is included? And if so then why does a type double have the range of 10^-308 to 10^308 shouldn't it be 10^-308 to 10^307?
thanks for the help
|