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
What is strcpy() function?
What are the salient features of c languages?
How does #define work?
What is the acronym for ansi?
Explain the concept and use of type void.
What is the collection of communication lines and routers called?
What is the difference between arrays and pointers?
How #define works?
How will you find a duplicate number in a array without negating the nos ?
In C language what is a 'dangling pointer'?
What are the different file extensions involved when programming in C?
What are the advantages and disadvantages of a heap?
List some of the dynamic data structures in C?
Explain what is the advantage of a random access file?
Should I learn data structures in c or python?