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

how do you execute a c program in unix.

636


What are different storage class specifiers in c?

618


What is the difference between a free-standing and a hosted environment?

640


What are the 4 types of unions?

609


What is a double c?

591






what are the different storage classes in c?

662


explain what are actual arguments?

635


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1520


What is build process in c?

645


How can you invoke another program from within a C program?

618


When a c file is executed there are many files that are automatically opened what are they files?

594


What is the use of typedef in c?

585


What is time complexity c?

568


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

582


Write a program to identify if a given binary tree is balanced or not.

684