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
What is c language used for?
What does the file stdio.h contain?
Describe the difference between = and == symbols in c programming?
How can I do peek and poke in c?
What is the return type of sizeof?
Difference between strcpy() and memcpy() function?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Why cant I open a file by its explicit path?
What is a pragma?
How pointers are declared?
Explain argument and its types.
Is array name a pointer?
What is #include cctype?
Why do we need arrays in c?
What are external variables in c?