Question DSA-ARR-0001
EasyWhat is the index of the first element of an array in C, Java and Python?
- A.
It depends on the size
- B.
−1
- C.
Show answer and explanation
Answer: C
These languages use zero-based indexing.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
What is the index of the first element of an array in C, Java and Python?
It depends on the size
−1
Answer: C
These languages use zero-based indexing.
0
1