what is the size of an integer variable?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / piyush
It depends on the compiler we are working on.
if it is 32 bit compiler:(GCC)
integer is 4 bytes
for 18 bit compiler:(Turboc)
integer is 2 bytes
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / manish soni tagore collage jai
size of integer is
sizeof(int);
| Is This Answer Correct ? | 0 Yes | 0 No |
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
plz answer..... a program that reads non-negative integer and computes and prints its factorial
What will the preprocessor do for a program?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Explain how can you tell whether a program was compiled using c versus c++?
How many types of errors are there in c language? Explain
hello friends what do u mean by BUS ERROR i got this error while i am doing my program in DATA STRUCTURES
What does s c mean in text?
Why doesn't C have nested functions?
write a program to insert an element at the specified position in the given array in c language
identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;