ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
what is the size of an integer variable?
 Question Submitted By :: A. Sujatha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the size of an integer variable?
Answer
# 1
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 ?    1 Yes 0 No
Anandi
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the associativity of bitwise OR operator?  1
Why the use of alloca() is discouraged? Oracle2
Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures. Google3
program to find the ASCII value of a number  5
what is the difference between const char *p, char const *p, const char* const p Accenture4
1,1,5,17,61,217,?,?.  3
what are the various memory handling mechanisms in C ? HP3
what is meant by c  4
15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to? CTS2
how many header file is in C language ?  14
how to do in place reversal of a linked list(singly or doubly)?  2
we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language????????????? Google2
How to add two numbers without using arithmetic operators? Sapient11
HOW TO HANDLE EXCEPTIONS IN C  5
dynamically allocate memory for linear array of n integers,store some elements in it and find some of them  1
write a recursive program in'c'to find whether a given five digit number is a palindrome or not  1
what is the defrenece between structure and union  5
what does " calloc" do? Cadence6
write a addition of two no. program with out using printf,scanf,puts .  3
What is the Difference between Class and Struct? Motorola9
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com