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
Explain how do you view the path?
Write a program to print all permutations of a given string.
which is an algorithm for sorting in a growing Lexicographic order
What is the use of clrscr?
How do you list files in a directory?
How do we print only part of a string in c?
What is switch in c?
What is a MAC Address?
Explain what are multibyte characters?
Can we change the value of constant variable in c?
Explain how can I write functions that take a variable number of arguments?
Why does not c have an exponentiation operator?
What is the use of sizeof?
Explain the difference between malloc() and calloc() function?
Explain a pre-processor and its advantages.