Vidyalelo
C++ Programming · Q240

C++ miscellaneous

Programming · C++ Programming · question 240

Q240

Which of the following is the correct syntax of accessing the first element of a pair p?

A.
p.first
Answer
B.
p.second
C.
p[0]
D.
p[1]

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board