हिंदी

Consider the following array and answer the questions given below: int a[ ] = {12,10,8,4,6,2,3,5,7} What is the output of System.out.print(a[0]+a[5]);? - Computer Applications

Advertisements
Advertisements

प्रश्न

Consider the following array and answer the questions given below:

int a[ ] = {12,10,8,4,6,2,3,5,7}

What is the output of System.out.print(a[0]+a[5]);?

अति संक्षिप्त उत्तर
Advertisements

उत्तर

14

Explanation:

a[0] is 12, a[5] is 2

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (March) Official Board

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×