What is the difference between get() and at()?

a) at() is available under <array> header file whereas get() is available under <tuple> header file
b) at() is a member function of array class whereas get() is not
c) get() takes array class as a parameter whereas at() takes a constant integer(i.e. index) as a parameter
d) all of the mentioned

1 thought on “What is the difference between get() and at()?”

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

Leave a Comment