how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / vishal
In this case,
Processor : now if we consider size of ALU (16 bit or 32
bit) then int size get differed.
OS: in case of OS size of int varies in windows & linux.
Compiler : In case of compiler, C compiler has size of int 2
bytes while on same OS & processor Java compiler has 4 bytes
Finally conclusion is as per operation capacity of ALU,
operating systems are designed.
while in case of compiler i think they work in somewhat
upper layers so it doesn't matter with internal operation.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Explain what is the purpose of "extern" keyword in a function declaration?
Which function in C can be used to append a string to another string?
How can you increase the allowable number of simultaneously open files?
What is the purpose of ftell?
What is the use of typedef in c?
What is #line?
Can an array be an Ivalue?
What are inbuilt functions in c?
What does calloc stand for?
When was c language developed?
Is that possible to add pointers to each other?
What is the difference between local variable and global variable in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Can include files be nested?
What are the 5 types of organizational structures?