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 60 Discussion

Actual exam question for C++ Institute's CPP - C++ Certified Professional Programmer exam
Question #: 60
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;

template void print(T start, T end) {

while (start != end) {

std::cout << *start << " "; start++;



int main(){


set s;

for(int i=10; i>0; i??) {




print(v.begin(), v.end()); print(s.begin(), s.end());cout<

return 0;


The output will be:

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

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

Save Cancel