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
There seem to be a few missing operators ..
Explain how can I read and write comma-delimited text?
what is the different bitween abap and abap-hr?
What is the use of getchar() function?
What does *p++ do?
What are the two forms of #include directive?
What is the difference between functions abs() and fabs()?
Explain what is meant by 'bit masking'?
What is the difference between printf and scanf in c?
What is the difference between typedef struct and struct?
Linked lists -- can you tell me how to check whether a linked list is circular?
Can we declare a function inside a function in c?
Are the outer parentheses in return statements really optional?
write a program to print largest number of each row of a 2D array
Explain how do you print an address?