Programming Languages C Objective
Mar 08, 2013

What will be output of the following c code?
void main()
{
printf("%d",sizeof(5.2));
}

Choose the correct answer:
A) 5
B) 8
C) 2
D) 16
Detailed Explanation

Default type of floating point constant is double. So 5.2 is double constant and its size is 8 byte.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback