Output Questions for Class 10 ICSE Computer Applications
Give the output of the following:
int m[] = {2,4,6,8};
System.out.println(m[1] + " " + m[2]);
Java
Java Arrays
114 Likes
Answer
4 6
Working
m[1] gives the second element of the array which is 4
m[2] gives the third element of the array which is 6
Answered By
59 Likes