how the size of an integer is decided?
- is it based on processor or compiler or OS?

Answer Posted / prashant

It depend upon What kind of machine you have (16 or 32 bit)?
If you are using 16 bit machine then int requires 2 bytes of
memory and if you are using 32 bit machine then int requires
4 bytes of memory...

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c variable?

753


What is the function of multilevel pointer in c?

806


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

793


What is the basic structure of c?

732


What is the best way to store flag values in a program?

742






What is conio h in c?

787


What is infinite loop?

816


Calculate 1*2*3*____*n using recursive function??

1705


Explain what is the difference between #include and #include 'file' ?

750


Explain enumerated types in c language?

762


Explain what are the different data types in c?

902


What is the g value paradox?

827


What tq means in chat?

803


Explain what happens if you free a pointer twice?

774


When should we use pointers in a c program?

826