Vidyalelo
C++ Programming · Q171

C++ miscellaneous

Programming · C++ Programming · question 171

Q171

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

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

Answer: Option B

Solution

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