Register
 

Free CSC Scholarship support for 2018-19

Engineering, Computer, Scholarship and SEO Support Forum




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

Offline mechanic

  • Engineer
  • Hero Engineer
  • *****
  • Posts: 3029
    • View Profile
    • Engineering Forum
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:

B. prints 0

Engineering, Computer, Scholarship and SEO Support Forum