Which of the following searches for an element in a list and returns it’s index
Answers
Answered by
1
Answer:
if you want to find index of any character present in array you can simply create a new array and store in it tha index using [function array name].index of();
for example:-
{
int ar=[1,2,3,4,5];
int a = ar.index of(2);
s.o.pln(a);
}
now it will return the index of 2 which is 1 as output
I hope it will help you ☺️☺️☺️
Similar questions