1.

What is the output of this program?
#include <iostream>
#include <memory>
#include <string>
using namespace std;
int main ()
{
string str[] = {"Interveiw", "Mania"};
pair <string*, ptrdiff_t> Res = get_temporary_buffer<string>(2);
if (Res.second>0)
{
uninitialized_copy ( str, str + Res.second, Res.first );
for (int k = 0; k < Res.second; k++)
cout << Res.first[k] << " ";
return_temporary_buffer(Res.first);
}
return 0;
}

A. Compilation Error
B. Interveiw
C. Mania
D. Interveiw Mania
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs