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

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

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

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<<a<

return 0;

}

Program will output:


A.

123


B.

1 2 3


C.

1.12.23.3


D.

1.1 2.2 3.3


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.