Welcome Guest | Sign in | Register
Assignments - Discussion Page For Q.10539 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Assignments > Questions and Answers

Exercise:

Section 1

Q: The correct statement which assign the decimal result of dividing the integer variable sum by 3 into the float variable costing, is (Use type casting to ensure that floating point division is performed)
A. Given: int sum = 7; float costing; B. (float) costing = sum / 3;
C. costing = (float) (sum / 3); D. costing = (float) sum / 3;

Answer and Explanation

Answer:costing = (float) sum / 3;

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.