Vidyalelo
C++ Programming · Q53

Classes and Objects in C++

Programming · C++ Programming · question 53

Q53

What will be the output of the following C++ code? #include #include using namespace std; int main () string str ("microsoft"); string::reverse_iterator r; for (r = str.rbegin() ; r < str.rend(); r++ ) cout << *r; return 0;

A.
microsoft
B.
micro
C.
tfosorcim
Answer
D.
tfos

Answer: Option C

Solution

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