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
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}};
- What is the order of the array?
- What is the value of x [0] [0] + x [2] [2]?
संक्षेप में उत्तर
Advertisements
उत्तर
- Order of the array 4 × 3, i.e. 4 rows and 3 columns
-
x[0][0] = 4, x[2][2] = 10 So, the result is 14
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
