Ace Your C++ Skills 2026 – Rock the ‘Thinking in C++’ Challenge!

Question: 1 / 565

Which operator is right-associative and combines both operation and assignment?

++

->

+=

The operator "C +=" is the right-associative operator that consists of both operation and assignment. This operator is used to add a value to a variable and store the result in that same variable. In comparison, operator "A: ++" is the increment operator that only increases the value by 1 and does not assign a new value to the variable. Operator "B: ->" is used to access a member of a struct or class through a pointer, and operator "D: %=" is used to calculate the remainder of a division operation and assign that value to the variable.

Get further explanation with Examzify DeepDiveBeta

%=

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy