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
Does c have enums?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is a structure and why it is used?
Why do we use int main?
Array is an lvalue or not?
What is ponter?
Explain how can I write functions that take a variable number of arguments?
Why is struct padding needed?
Explain a file operation in C with an example.
Describe the steps to insert data into a singly linked list.
What is wrong with this code?
Write a program to swap two numbers without using third variable?
Where are local variables stored in c?
Is linux written in c?
What is the code for 3 questions and answer check in VisualBasic.Net?