1.

What is the index number of the last element of an array with 9 elements?(a) 9(b) 8(c) 0(d) Programmer-definedI have been asked this question in quiz.The question is from Arrays topic in chapter Types, Pointers, Arrays & Structures in C++ of C++

Answer»

Right OPTION is (b) 8

The explanation: Because the first element ALWAYS starts at 0. So it is on 8 POSITION.



Discussion

No Comment Found

Related InterviewSolutions