What is the length of an array when its first index is denoted by i and last…
DSSSB TGT/PGT · 2021 · TGT Computer Science · post code 91/20 · 2021 paper 2 · Section B: subject
What is the length of an array when its first index is denoted by i and last index is denoted by j?
- A.
length of an array = i + j
- B.
length of an array = j − i
- C.
length of an array = j − i + 1
- D.
length of an array = j − i − 1
Attempted by 2261 students.
Sign up free to check your answer
Sign up freeLoading lesson…