Google News
logo
CPP - Quiz(MCQ)
What is the difference between get() and at() in C++?
A)
at() is a member function of array class whereas get() is not
B)
get() takes array class as a parameter whereas at() takes a constant integer(i.e. index) as a parameter
C)
at() is available under <array> header file whereas get() is available under <tuple> header file
D)
All of the above

Correct Answer :   All of the above


Explanation : get() and at() differ in various ways. get() is not a part of array class, get is available under <tuple> header and get() takes array class also as a parameter to access the element.

Advertisement