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 are variables declared in c?
What is double pointer?
Write a program to print all permutations of a given string.
What is the use of #define preprocessor in c?
what is the diffrenet bettwen HTTP and internet protocol
In C language, a variable name cannot contain?
Why do we use int main?
Explain a pre-processor and its advantages.
Explain how can a program be made to print the line number where an error occurs?
What are the 4 types of programming language?
What is a floating point in c?
Explain what is meant by 'bit masking'?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Why can arithmetic operations not be performed on void pointers?
What are the standard predefined macros?