English

Give the output of the following program snippet: 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); - Computer Applications

Advertisements
Advertisements

Question

Give the output of the following program snippet:

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);
One Word/Term Answer

Solution

27

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [Page 239]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q III. 2. | Page 239
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×