What is the use of rank() function in C++?
(a) Returns size of each dimension
(b) Returns how many total elements can be stored in an array
(c) Returns how many elements are in array currently
(d) Returns the dimension of an array
This question was addressed to me during an online exam.
My doubt stems from Array Type Manipulation topic in portion Class Hierarchies, Library & Containers of C++