This Domain is For Sale

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

  • 0 replies
  • 1255 views
*

Offline mechanic

  • Engineer
  • *****
  • 3420
  • Gender: Male
  • Engineer
    • View Profile
    • Engineering Forum
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:

C. prints 1