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

What is union in c?

643


What are the keywords in c?

651


Which type of language is c?

656


How do you determine whether to use a stream function or a low-level function?

662


What does dm mean sexually?

825






Describe how arrays can be passed to a user defined function

791


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

653


What are nested functions in c?

572


Explain how to reverse singly link list.

617


Why should I use standard library functions instead of writing my own?

686


Can i use “int” data type to store the value 32768? Why?

762


What does node * mean?

722


How to write c functions that modify head pointer of a linked list?

550


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1456


What do you understand by normalization of pointers?

632