Question discussion

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

358618Medium DSSSB TGT Computer Science 0 replies 0 views
0
What is the total number of elements in a array E[–4 : 1, 6 : 10]?
  • A20
  • B30
  • C11
  • D9
Correct answer: B

Explanation

The number of elements = (1 – (–4) + 1) × (10 – 6 + 1) = 6 × 5 = 30.

Discussion 0

Nobody has replied yet. Start the discussion!