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

In this case,

Processor : now if we consider size of ALU (16 bit or 32
bit) then int size get differed.

OS: in case of OS size of int varies in windows & linux.

Compiler : In case of compiler, C compiler has size of int 2
bytes while on same OS & processor Java compiler has 4 bytes

Finally conclusion is as per operation capacity of ALU,
operating systems are designed.

while in case of compiler i think they work in somewhat
upper layers so it doesn't matter with internal operation.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

3101


Explain threaded binary trees?

1114


When should you not use a type cast?

1077


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

1070


What is difference between main and void main?

1129


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

1105


What is a nested loop?

1083


What is pass by value in c?

1022


What is string length in c?

1036


Can we declare variables anywhere in c?

959


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1082


what do the 'c' and 'v' in argc and argv stand for?

1122


How can I avoid the abort, retry, fail messages?

1097


How can I swap two values without using a temporary?

1068


Describe the order of precedence with regards to operators in C.

1011