Single Choice Not Set

QWhich of the following is an invalid assignment operator?

ID: #1218 Operators and Enums in C Language 22,324 views
Question Info
#1218Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

Explanation

Answer: Option D

Valid assignment operator

Operator Example Same as
= a = b a = b
+= a += b a = a+b
-= a -= b a = a-b
*= a *= b a = a*b
/= a /= b a = a/b
%= a %= b a = a%b
|= a |= b a = a|b

Share This Question

Challenge a friend or share with your study group.