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 1 Question 93 Discussion

Actual exam question for C++ Institute's CPP exam
Question #: 93
Topic #: 1
[All CPP Questions]

What will happen when you attempt to compile and run the code below, assuming that you enter

the following sequence: 1.1 2.2 3.3?

#include

#include

using namespace std;

int main ()

{

int a,b,c;

cin>>a>>b>>c;

cout<

return 0;

}

Program will output:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Lawrence
4 hours ago
I'm not sure about this. I think the program will output D) 1.1 2.2 3.3 because the input values are separated by spaces when entered.
upvoted 0 times
...
Julian
1 days ago
I agree with Dean. The code will output B) 1 2 3 because the cout statement does not include any spaces or separators between the variables.
upvoted 0 times
...
Dean
8 days ago
I think the program will output B) 1 2 3 because it will print the values of a, b, and c without any spaces in between.
upvoted 0 times
...

Save Cancel