What is the syntax of printing the first element of an array Arr using get() function?

a) Arr.get(0)
b) get<0>(Arr)
c) Arr.get[0]
d) get<0>[Arr]

1 thought on “What is the syntax of printing the first element of an array Arr using get() function?”

  1. b
    Explanation: To access the first element of an array class Arr using get() function, we use the following get(Arr) where index is an integer constant number, not an identifier.

Leave a Comment