Answer Posted / 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 |
Post New Answer View All Answers
Explain what is #line used for?
Explain what is a pragma?
Why main is not a keyword in c?
What is structure data type in c?
What are comments and how do you insert it in a C program?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What is the difference between union and anonymous union?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is the equivalent code of the following statement in WHILE LOOP format?
What are variables and it what way is it different from constants?
Explain how can I right-justify a string?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What the different types of arrays in c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Differentiate fundamental data types and derived data types in C.