‹ Back to the paper
Question 46
1 mark
Computer ScienceISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024)Short answerArrays, Strings
Answer the following question.
What is the length of the array int arr[ ], if its first index is x and the last index is y ?
What is the length of the array
int arr[ ], if its first index is $x$ and the last index is $y$ ?Answer
Answer
$y - x + 1$