English

Write the Java statement to initialise the first 6 odd numbers in a 3 × 2 array. What is the result of x[0][1] + x[2][1] of the above array? - Computer Applications

Advertisements
Advertisements

Question

Write the Java statement to initialise the first 6 odd numbers in a 3 × 2 array. What is the result of x[0][1] + x[2][1] of the above array?

Code Writing
Advertisements

Solution

  • int ar[][]={{1,3},{5,7},(9,11}};
  • 14 

Explanation:

x[0][1] =3, x[2][1]=11

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Official Board
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×