Which of the following gives the nth element of the Array?
Show answerHide answer
Correct answer: (B) array[n–1];
Explanation
Array indices start at 0, so the nth element is array[n-1].
Correct answer: (B) array[n–1];
Explanation
Array indices start at 0, so the nth element is array[n-1].
This is question 90 of BPSC TRE 2.0 (2023) Computer Class 9-10 — Previous Year Paper. 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.