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 3 Question 81 Discussion

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

What will happen when you attempt to compile and run the code below, assuming that you enter the following sequence: true true?

#include

#include

using namespace std;

int main ()

{

bool a,b;

cin>>a>>b;

cout<

return 0;

}

Program will output:

Show Suggested Answer Hide Answer
Suggested Answer: E

Comments

Leota
1 days ago
Hmm, this is a tricky one. I've seen similar questions before, and they can be quite deceptive. I'm not sure what the output will be, but I'll have to carefully think through the logic.
upvoted 0 times
...

Save Cancel