Question 114Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12Which one of the following is the correct definition of “is_array( );” function in C++?
- AIt checks that the specified variable is of the array or not
- BIt checks that the specified array is of single dimension or not
- CIt checks that the specified array is of multi-dimension or not
- DMore than one of the above
- 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.