What is the total number of elements in a array E[-4: 1, 6: 10]?
Show answerHide answer
Correct answer: (A) 30
Explanation
Rows run from −4 to 1, which is 1 − (−4) + 1 = 6 rows. Columns run from 6 to 10, which is 10 − 6 + 1 = 5 columns. Total elements = 6 × 5 = 30.