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?”

### Leave a Comment

You must be logged in to post a comment.

a) 1

b) 2

c) 3

d) 4

You must be logged in to post a comment.

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.