‹ Back to the paper
What is the length of the array `int arr[ ]`, if its first index is and the last index is ?
What is the length of the array `int arr[ ]`, if its first index is $x$ and the last index is $y$ ?
Answer
Answer
AI$y - x + 1$
From ISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024), question 46.