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


Please Help Members By Posting Answers For Below Questions

Which type of language is c?

740


what is use of malloc and calloc?

1485


Explain about C function prototype?

702


What are the advantages of c language?

763


What is file in c language?

671






Is calloc better than malloc?

670


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

715


Difference between strcpy() and memcpy() function?

775


What is c language in simple words?

694


How can I write functions that take a variable number of arguments?

720


Explain what are the advantages and disadvantages of a heap?

707


Is array name a pointer?

696


If you know then define #pragma?

763


Why do we use main function?

728


what will be maximum number of comparisons when number of elements are given?

1528