Author Topic: The following program fragment int a =4, b = 6; printf{"%d", a = b};  (Read 578 times)

Offline mechanic

Advertisement
Question: The following program fragment int a =4, b = 6; printf{"%d", a = b};

Options are:


A. outputs an error message
B. prints 0
C. prints 1
D. none of the above

Correct answer is:

D. none of the above

Engineering Forum