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
What is structure in c language?
How can you access memory located at a certain address?
Explain what are linked list?
What is wrong with this statement? Myname = 'robin';
What is dynamic memory allocation?
What is multidimensional arrays
find the sum of two matrices and WAP for it.
Which one would you prefer - a macro or a function?
What is stack in c?
List some basic data types in c?
Can a variable be both static and volatile in c?
Is c still relevant?
What are derived data types in c?
How variables are declared in c?
Tell me with an example the self-referential structure?