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?

  1. A.

    length of an array = i + j

  2. B.

    length of an array = j − i

  3. C.

    length of an array = j − i + 1

  4. D.

    length of an array = j − i − 1

Attempted by 2261 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…