Suppose you have the following declaration.

char[] namelist = new char[100];

which of the following range is valid for the index of the array namelist.
(i) 1 through 100
(ii) 0 through 100

1. both are invalid
2. only (i)
3. none of these
4. only (ii)

Solved
Show answers

Ask an AI advisor a question