how the size of an integer is decided?
- is it based on processor or compiler or OS?
Answer Posted / akshay
compiler
if compiler is 16 bit compiler then int is of 2 bytes (turbo c)
if compiler is 32 bit then int is of 4 bytes in VC++
but for 32 bit compiler processor should be compatible i.e. of 32 bytes
so processor also decides it
again of OS
if os is 16 bit how you r going to run a 32 bit compiler on it
so a confusing question
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What does c mean?
Tell me is null always defined as 0(zero)?
How can you increase the size of a statically allocated array?
What is external variable in c?
Explain data types & how many data types supported by c?
What is the use of extern in c?
What are the differences between Structures and Arrays?
Why doesnt long int work?
What are linker error?
Place the #include statement must be written in the program?
Explain what is meant by high-order and low-order bytes?
Why is main function so important?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What is break in c?
Explain main function in c?