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

There seem to be a few missing operators ..

605


Explain how can I read and write comma-delimited text?

638


what is the different bitween abap and abap-hr?

1732


What is the use of getchar() function?

620


What does *p++ do?

574






What are the two forms of #include directive?

630


What is the difference between functions abs() and fabs()?

635


Explain what is meant by 'bit masking'?

634


What is the difference between printf and scanf in c?

734


What is the difference between typedef struct and struct?

585


Linked lists -- can you tell me how to check whether a linked list is circular?

631


Can we declare a function inside a function in c?

571


Are the outer parentheses in return statements really optional?

564


write a program to print largest number of each row of a 2D array

1860


Explain how do you print an address?

639