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

Answer Posted / hrishikesh

I think it is decided by Os...
Because variables are assigned memory while the program is
in execution which is done by the OS,and the "MEMORY
MANAGEMENT" is one of the important services provided by the
OS which does the "memory allocation and De allocation".

So, what will be the amount of location needed to store an
int is OS dependent .

Thanks ....,,,,

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use a pointer to a function?

813


Why is c still so popular?

768


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2270


4. main() { int c=- -2; printf("c=%d",c); }

1529


Can I initialize unions?

775






What is the use of pointers in C?

802


What is #include conio h?

746


What is wrong in this statement?

787


How are portions of a program disabled in demo versions?

970


What is pointers in c?

864


What is equivalent to ++i+++j?

815


Explain the advantages of using macro in c language?

733


In C language what is a 'dangling pointer'?

801


Why calloc is better than malloc?

746


Explain output of printf("Hello World"-'A'+'B'); ?

1140