Find the output?
void main()
{float a=2.0;
printf("\nSize of a ::%d",sizeof(a));
printf("\nSize of 2.0 ::%d",sizeof(2.0));}
Answer Posted / aravind
ok guys.
Here ans is 4 and 4.
I think %d specifier is for integer and it takes a=2 and prints 4 bytes for gcc and 2 bytes for turbo. Sizeof(2.0) also takes %d integer specifier and prints 4.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is the difference between array and structure in c?
i want to know the procedure of qualcomm for getting a job through offcampus
Write a program to check armstrong number in c?
write a proram to reverse the string using switch case?
Is c still relevant?
What is scanf () in c?
What is an lvalue?
List the difference between a While & Do While loops?
What is the maximum no. of arguments that can be given in a command line in C.?
What is the correct declaration of main?
Explain what is the difference between a string and an array?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is the difference between %d and %i?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.