1.

Which of the following operator has left to right associativity?(a) Unary operator(b) Logical not(c) Array element access(d) addressofI had been asked this question in a job interview.Question is taken from C++ Concepts in chapter Basics Concepts of C++ of C++

Answer»

Correct OPTION is (C) Array ELEMENT access

Best EXPLANATION: Array element has left to right associativity i.e. expressions are EVALUATED from left to right in case of array element access.



Discussion

No Comment Found

Related InterviewSolutions