Question discussion

What is the total number of elements in a array E[–4 : 1, 6 : 10]?

360014Medium DSSSB TGT Computer Science 0 replies 0 views
0
What is the total number of elements in a array E[–4 : 1, 6 : 10]?
  • A30
  • B20
  • C9
  • D11
Correct answer: A

Explanation

Number of elements = (1 − (−4) + 1) × (10 − 6 + 1) = 6 × 5 = 30.

Discussion 0

Nobody has replied yet. Start the discussion!