Output Questions for Class 10 ICSE Computer Applications
Give the output of the following:
int a[]=new int [5];
a[0]=4; a[1]=8; a[2]=7; a[3]=12; a[4]=3;
System.out.println(a[2+1]);
Java
Java Arrays
102 Likes
Answer
12
Working
a[2+1] ⇒ a[3] ⇒ 12
Answered By
58 Likes