Engineering Forum

EDUCATION => Computer and I.T => Programming with C [MCQ] => Topic started by: mechanic on April 30, 2017, 12:49:14 PM

Title: The following program fragment int a = 4, b = 6; printf{"%d", a == b};
Post by: mechanic on April 30, 2017, 12:49:14 PM
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:

B. prints 0