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

Discussion

Which of the following is an invalid assignment operator?

  • A.a %= 10;
  • B.a /= 10;
  • C.a |= 10;
  • D.None of the mentioned

Answer: D

Correct answer: None of the mentioned

All three are valid compound assignment operators: %= for remainder, /= for division and |= for bitwise OR. So none of them is invalid, and the answer is none of the mentioned.

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

Post your comment

Please log in or register to post a comment.