Programming Languages
C
Objective
Mar 08, 2013
What will be output of the following c code?
void main()
{
printf("%d",sizeof(5.2));
}
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