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

Which is more efficient, a switch statement or an if else chain?

1043


What is the function of volatile in c language?

1147


What is the difference between exit() and _exit() function in c?

1083


How do we open a binary file in Read/Write mode in C?

1248


What is a volatile keyword in c?

1171


What are enums in c?

1216


When is a null pointer used?

1128


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1996


what is uses of .net

1744


Explain function?

1102


Explain the properties of union. What is the size of a union variable

1195


What is wrong with this program statement?

1048


Can you please explain the difference between malloc() and calloc() function?

1131


What is fflush() function?

1141


Explain modulus operator.

1065