MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Index values of an array range from ____
A
0 to length-1
B
1 to length
C
0 to length
D
0 to length + 1
Explanation: 

Detailed explanation-1: -You can not change the C Basic rules of Zero Starting Index of an Array.

Detailed explanation-2: -Zero-based array indexing is a way of numbering the items in an array such that the first item of it has an index of 0, whereas a one-based array indexed array has its first item indexed as 1.

Detailed explanation-3: -The index of an array of size N can range from to . For example, if your array size is, then your index will range from 0 to 4 (5-1). Each element of an array can be accessed by using a r r [ i n d e x ] .

There is 1 question to complete.