Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / lanchai

Different hardware systems might have a different size for
an integer. you might get a different number in different
OS because the hardware running the OSes were different to
begin with. also, the "sizeof" command is actually a
compile-time command calculated by the compiler (see
wikipedia on sizeof)

So strictly speaking, its the hardware (or processor) that
determines the size of an integer.

Is This Answer Correct ?    11 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1987


Difference between MAC vs. IP Addressing

1150


Explain heap and queue.

1090


What is the use of #define preprocessor in c?

1081


What is the scope of global variable in c?

999


What are the advantages of c preprocessor?

1266


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3971


Explain the red-black trees?

1132


How can this be legal c?

1089


Explain what are bus errors, memory faults, and core dumps?

1280


How many identifiers are there in c?

1024


How to find a missed value, if you want to store 100 values in a 99 sized array?

1415


can we have joblib in a proc ?

2310


What is the significance of an algorithm to C programming?

1046


What are Macros? What are its advantages and disadvantages?

1166