This blog assists in mastering C and C++ programming skills from basics to advanced levels.
2.What is the output of following code? printf("%5.2f",12345.6789);* the answer should be 12345.67 not 12345.68, right ?
The correct answer is 12345.68, because the rounding of .6789 becomes .68;
how to check my result?
Score will be displayed once you submit your quiz.
2.What is the output of following code? printf("%5.2f",12345.6789);
ReplyDelete* the answer should be 12345.67
not 12345.68, right ?
The correct answer is 12345.68, because the rounding of .6789 becomes .68;
Deletehow to check my result?
DeleteScore will be displayed once you submit your quiz.
Delete