Google News
logo
CPP - Quiz(MCQ)
Which operator is having the right to left associativity in the following?
A)
Function call
B)
Type cast
C)
Array subscripting
D)
Addition and subtraction

Correct Answer :   Type cast


Explanation : There are many rights to left associativity operators in C++, which means they are evaluation is done from right to left. Type Cast is one of them. Here is a link of the associativity of operators: https://github.com/MicrosoftDocs/cpp-docs/blob/master/docs/cpp/cpp-built-in-operators-precedence-and-associativity.md

Advertisement