#include &lt;iostream&gt;    #include &lt;memory&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;     &#123;        pair &lt;string*, ptrdiff_t&gt;       result = get_temporary_buffer&lt;string&gt;&#40;3&#41;;        if &#40;result.second &gt; 0&#41;        &#123;            uninitialized_fill &#40; result.first, result.first + result.second,             &quot;Hai&quot; &#41;;            for &#40;int i=0; i&lt;result.second; i++&#41;                cout &lt;&lt; result.first&#91;i&#93; ;            return_temporary_buffer&#40;result.first&#41;;        &#125;        return 0;    &#125;
A. Hai
B. HaiHai
C. HaiHaiHai
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;memory&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;     &#123;        pair &lt;string*, ptrdiff_t&gt;       result = get_temporary_buffer&lt;string&gt;&#40;3&#41;;        if &#40;result.second &gt; 0&#41;        &#123;            uninitialized_fill &#40; result.first, result.first + result.second,             &quot;Hai&quot; &#41;;            for &#40;int i=0; i&lt;result.second; i++&#41;                cout &lt;&lt; result.first&#91;i&#93; ;            return_temporary_buffer&#40;result.first&#41;;        &#125;        return 0;    &#125;
A. Hai B. HaiHai C. HaiHaiHai D. None of the mentioned
Explanation:In this program, We storing the string in the string buffer and then we are printing it.