1.

Which of the following accesses the seventh element stored in array?(a) array[6];(b) array[7];(c) array(7);(d) array;This question was addressed to me during an online exam.The above asked question is from Arrays topic in section Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right answer is (a) ARRAY[6];

Easiest EXPLANATION - The array LOCATION STARTS from zero, So it can accessed by array[6].



Discussion

No Comment Found

Related InterviewSolutions