हिंदी

Consider the following two-dimensional array and answer the questions given below: int x[ ][] = {{4,3,2}, {7,8,2}, {8,3,10}, {1,2,9}}; What is the order of the - Computer Applications

Advertisements
Advertisements

प्रश्न

Consider the following two-dimensional array and answer the questions given below:

int x[ ][] = {{4,3,2}, {7,8,2}, {8,3,10}, {1,2,9}};
  1. What is the order of the array?
  2. What is the value of x [0] [0] + x [2] [2]?
संक्षेप में उत्तर

उत्तर

  1. Order of the array 4 × 3, i.e. 4 rows and 3 columns
  2. x[0][0] = 4, x[2][2] = 10
    So, the result is 14
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×