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 diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
How can you return multiple values from a function?
provide an example of the Group by clause, when would you use this clause
What is static memory allocation? Explain
What is strcpy() function?
What are register variables in c?
Is exit(status) truly equivalent to returning the same status from main?
Is javascript based on c?
Why is sprintf unsafe?
how is the examination pattern?
How do I read the arrow keys? What about function keys?
What are identifiers in c?
What is an arrays?
What is typedf?
How can I determine whether a machines byte order is big-endian or little-endian?