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
How will you divide two numbers in a MACRO?
What is a shell structure examples?
Write a simple code fragment that will check if a number is positive or negative.
What is formal argument?
What is exit() function?
explain what are pointers?
What is static and volatile in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is a spanning Tree?
Explain void pointer?
Why can’t we compare structures?
What is data structure in c programming?
What are formal parameters?
What is extern keyword in c?
Which header file is essential for using strcmp function?