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


what is the size of an integer variable?

Answers were Sorted based on User's Feedback



what is the size of an integer variable?..

Answer / anandi

The size of integer variable is 2 bytes.

Eg:
if u declare like,

int a;

the compiler will allocate the size of the variable a,
to 2 bytes bcoz it is an int variable.

If u want to know the size of any other
variables,structures,etc. use the sizeof() function.

Eg:

int a;
sizeof(a);

this will print 2 which is the size of the int datatype.

Is This Answer Correct ?    3 Yes 0 No

what is the size of an integer variable?..

Answer / piyush

It depends on the compiler we are working on.
if it is 32 bit compiler:(GCC)
integer is 4 bytes
for 18 bit compiler:(Turboc)
integer is 2 bytes

Is This Answer Correct ?    2 Yes 0 No

what is the size of an integer variable?..

Answer / sanjeev

size of integer variable is 2 bytes or 16 bits.

Is This Answer Correct ?    0 Yes 0 No

what is the size of an integer variable?..

Answer / manish soni tagore collage jai

size of integer is
sizeof(int);

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What are preprocessor directives?

1 Answers  


How many levels of pointers can you have?

0 Answers  


write a program which will count occurance of a day between two dates.

1 Answers   IonIdea,


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 Answers  


Explain what are compound statements?

0 Answers  


When should I declare a function?

0 Answers  


i need all types of question paper releted to "c" and other language.

0 Answers  


What is break statement?

0 Answers  


what different between c and c++

1 Answers  


What is indirection in c?

0 Answers  


Why do we write return 0 in c?

0 Answers  


What is a null pointer in c?

0 Answers  


Categories