Question 114Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12

Which one of the following is the correct definition of “is_array( );” function in C++?

  1. AIt checks that the specified variable is of the array or not
  2. BIt checks that the specified array is of single dimension or not
  3. CIt checks that the specified array is of multi-dimension or not
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (A) It checks that the specified variable is of the array or not

Explanation

std::is_array<T> (in <type_traits>) checks whether a given type is an array type, returning true or false.

From BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 114 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — 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.