JavaScript is required

%= is not a operator in C++

A.
TRUE
B.
FALSE
Trả lời:

Đáp án đúng: B


The `%=` operator is a valid operator in C++. It is a shorthand for the modulo and assignment operation. `a %= b` is equivalent to `a = a % b`. For instance, if `a` is 10, and you perform `a %= 3`, then `a` will be updated to 1 (because 10 % 3 = 1). Therefore, the statement "`%=` is not an operator in C++" is incorrect.

Câu hỏi liên quan