Advertisements
Advertisements
Question
Give the output of the following program snippet:
int a[4] = (2, 4, 6, 8);
for (i = 0; i <= 1; i++)
{
s = a[i] + a[3 − i];
System.out.println(s);
}
Answer in Brief
Solution
10
10
shaalaa.com
Is there an error in this question or solution?