+1 vote
in Data Structures & Algorithms I by (110k points)
In general, the index of the first element in an array is __________

(a) 0

(b) -1

(c) 2

(d) 1

Asked question is from Array and Array Operations in division Abstract Data Types of Data Structures & Algorithms I

I had been asked this question in semester exam.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
The correct option is (a) 0

Best explanation: In general, Array Indexing starts from 0. Thus, the index of the first element in an array is 0.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...