Question 92Asked in BPSC TRE 2.0 (2023) Computer Class 9-10

In C++, for what purpose the "rank()" is used?

  1. AIt returns the size of each dimension
  2. BIt returns the maximum number of elements that can be stored in the array
  3. CIt returns the dimension of the specified array
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) It returns the dimension of the specified array

Explanation

rank() reports the number of dimensions of an array type.

From BPSC TRE 2.0 (2023) Computer Class 9-10 — Previous Year Paper

This is question 92 of BPSC TRE 2.0 (2023) Computer Class 9-10 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.