Computer Applications
Fill in the blanks:
The last index of a single dimensional array will be _________, if it is declared to store 8 elements.
Related Questions
Fill in the blanks:
To access the elements in reverse order, the single dimensional array is traversed starting with _________ index.
Fill in the blanks:
Complete the following statement:
int _________ = _________ int a[15]
Give the output of the following:
int m[] = {2,4,6,8}; System.out.println(m[1] + " " + m[2]);Give the output of the following:
int a[] ={2,4,6,8,10}; a[0]=23; a[3]=a[1]; int c= a[0]+a[1]; System.out.println("Sum = "+c);