C++ Institute C++ Certified Professional Programmer CPP Question # 33 Topic 4 Discussion

C++ Institute C++ Certified Professional Programmer CPP Question # 33 Topic 4 Discussion

CPP Exam Topic 4 Question 33 Discussion:
Question #: 33
Topic #: 4

What happens when you attempt to compile and run the following code?

include

#include <algorithm>

#include

#include

#include

using namespace std;

int main() {

int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 };

vector v1(t, t + 10);

deque d1(t, t + 10);

set s1(t, t + 10);

cout<

return 0;

}


A.

program outputs: 6 6 6


B.

program outputs: 3 3 5


C.

program outputs: 3 6 5


D.

compilation error


E.

none of these


Get Premium CPP Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.