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 / 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

Explain how do you view the path?

1102


Write a program to print all permutations of a given string.

1144


which is an algorithm for sorting in a growing Lexicographic order

1753


What is the use of clrscr?

1063


How do you list files in a directory?

1090


How do we print only part of a string in c?

986


What is switch in c?

1051


What is a MAC Address?

1017


Explain what are multibyte characters?

1121


Can we change the value of constant variable in c?

1015


Explain how can I write functions that take a variable number of arguments?

1046


Why does not c have an exponentiation operator?

1014


What is the use of sizeof?

978


Explain the difference between malloc() and calloc() function?

998


Explain a pre-processor and its advantages.

1086