English

Give the output of the following program snippet: int m[ ] = {2, 4, 6, 8}; System.out.println(m[1] + ' ' + m[2]); - Computer Applications

Advertisements
Advertisements

Question

Give the output of the following program snippet:

int m[ ] = {2, 4, 6, 8}; 
System.out.println(m[1] + ' ' + m[2]); 
One Line Answer

Solution

4   6

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. 1. | Page 239
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×