Welcome Guest | Sign in | Register
printf() and scanf() - Discussion Page For Q.10532 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > printf() and scanf() > Questions and Answers

Q: The statement which prints out the value of the float variable dump using two decimal places, is
A. printf("%f", dump); B. printf("%.2f", dump);
C. printf("%2f", dump); D. printf("%f", &dump);

Answer and Explanation

Answer:printf("%.2f", dump);

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.