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
Which type of language is c?
what is use of malloc and calloc?
Explain about C function prototype?
What are the advantages of c language?
What is file in c language?
Is calloc better than malloc?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
Difference between strcpy() and memcpy() function?
What is c language in simple words?
How can I write functions that take a variable number of arguments?
Explain what are the advantages and disadvantages of a heap?
Is array name a pointer?
If you know then define #pragma?
Why do we use main function?
what will be maximum number of comparisons when number of elements are given?