how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / lanchai
Different hardware systems might have a different size for
an integer. you might get a different number in different
OS because the hardware running the OSes were different to
begin with. also, the "sizeof" command is actually a
compile-time command calculated by the compiler (see
wikipedia on sizeof)
So strictly speaking, its the hardware (or processor) that
determines the size of an integer.
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
Which is more efficient, a switch statement or an if else chain?
What is the function of volatile in c language?
What is the difference between exit() and _exit() function in c?
How do we open a binary file in Read/Write mode in C?
What is a volatile keyword in c?
What are enums in c?
When is a null pointer used?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
what is uses of .net
Explain function?
Explain the properties of union. What is the size of a union variable
What is wrong with this program statement?
Can you please explain the difference between malloc() and calloc() function?
What is fflush() function?
Explain modulus operator.