#include &lt;iostream&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;    &#123;        string str &#40;&quot;microsoft&quot;&#41;;        string::reverse_iterator r;        for &#40;r = str.rbegin&#40;&#41; ; r &lt; str.rend&#40;&#41;; r++ &#41;            cout &lt;&lt; *r;        return 0;    &#125;
A. microsoft
B. micro
C. tfosorcim
D. tfos
Answer:A
#include &lt;iostream&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;    &#123;        string str &#40;&quot;microsoft&quot;&#41;;        string::reverse_iterator r;        for &#40;r = str.rbegin&#40;&#41; ; r &lt; str.rend&#40;&#41;; r++ &#41;            cout &lt;&lt; *r;        return 0;    &#125;
A. microsoft B. micro C. tfosorcim D. tfos
Explanation:’rbegin’ is used to reverse the given the string.