How many different ways are there to access an element of array classes at the ith position?

a) 1
b) 2
c) 3
d) 4

1 thought on “How many different ways are there to access an element of array classes at the ith position?”

  1. c
    Explanation: There are three ways of accessing Array classes as mentioned below:
    i. using [] operator(same as C-like arrays)
    ii. using at() function available in array classes.
    iii. using get() function not a member of the array class.

Leave a Comment