हिंदी

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

प्रश्न

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);
एक शब्द/वाक्यांश उत्तर

उत्तर

27

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 3: Arrays (Single Dimensional and Double Dimensional) - EXERCISES [पृष्ठ २३९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 3 Arrays (Single Dimensional and Double Dimensional)
EXERCISES | Q III. 2. | पृष्ठ २३९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×