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
What is %lu in c?
formula to convert 2500mmh2o into m3/hr
How many bytes is a struct in c?
Are comments included during the compilation stage and placed in the EXE file as well?
What is main return c?
What are valid operations on pointers?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is the difference between single charater constant and string constant?
Do array subscripts always start with zero?
Write a program to implement queue.
Can you please explain the difference between syntax vs logical error?
Is void a keyword in c?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What are terms in math?