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 low-order bytes.
How can I find the modification date of a file?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is int a keyword in c?
Implement bit Array in C.
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix
What is difference between && and & in c?
What is getch () for?
Explain the use of bit fieild.
Define C in your own Language.
What functions are in conio h?
Why is c platform dependent?
What is the size of array float a(10)?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What should malloc() do? Return a null pointer or a pointer to 0 bytes?