PCP − Lecture 04

Explanation: B) Since x is an int, it cannot except a float unless the float is cast as an int. There is no explicit cast in the assignment statement in B. In A, a cast is not necessary because a float (y) can accept an int value (x), and in C and D, explicit casts are present making them legal. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download