+ 1
how can we get an array whose index will be start from 1
Whenever you make a variable of arry type by default index starts from 0 but what is do that index starts from 1 ex by deafault a[3] having index 0 1 2 but accourding to my ques a[3] index will be 1 2 3
1 ответ
+ 2
All arrays are 0 indexed so what you are trying is not possible but you can always access the element at any index given that the index is between 0 to arraySize - 1.