Question 40Asked in UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)

The associativity of which of the following operators is left to right, in C++?

  1. AUnary Operator
  2. BLogical not
  3. CArray element access
  4. DAddress of
Show answerHide answer

Correct answer: (C) Array element access

Explanation

Only array element access ([]) is left-to-right associative among the options listed. All others are unary operators and are right-to-left associative.

From UGC NET Computer Science PYQ, November 2017 (Paper II & III, Selected Questions)

This is question 40 of UGC NET Computer Science PYQ, November 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.