1.

What is the output of this program?
#include <iostream>
#include <algorithm>
using namespace std;
int main ()
{
int Numbers[] = {23, 25, 32, 43};
sort (Numbers, Numbers + 4);
do
{
} while ( next_permutation(Numbers, Numbers + 4) );
cout << Numbers[0] << ' ' << Numbers[1] << ' ' << Numbers[2] << ' ' << Numbers[3] << ' n';
return 0;
}

A. Compilation Error
B. 23
C. 23 25
D. 23 25 32
E. 23 25 32 43
Answer» F.


Discussion

No Comment Found

Related MCQs