Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is not a compound assignment operator?

  • A./=
  • B.+=
  • C.%=
  • D.==

Answer: D

Correct answer: ==

== is the equality operator: it compares and yields 1 or 0, and assigns nothing. The other three are compound assignments - a /= b means a = a / b, and likewise for += and %=.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.