Vidyalelo
C++ Programming · Q280

C++ miscellaneous

Programming · C++ Programming · question 280

Q280

What is the difference between begin() and rbegin()?

A.
both are the same
B.
begin() returns an iterator to the first element and rbegin() returns an iterator to an element kept at the end of the vector
Answer
C.
begin() returns an iterator to first element whereas rbegin() returns constant iterator to first element
D.
begin() returns returns first element rbegin() returns void

Answer: Option B

Solution

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