Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPP Topic 7 Question 62 Discussion

Actual exam question for C++ Institute's CPP - C++ Certified Professional Programmer exam
Question #: 62
Topic #: 7
[All CPP - C++ Certified Professional Programmer Questions]

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




using namespace std;

int main(){

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

vectorv(t, t+10);

set s1(v.begin(),v.end());


pair::iterator,set::iterator> range;

range = s1.equal_range(6);

cout<<*range.first<<" "<<*range.second<

return 0;


The output will be:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!

Save Cancel