CI

C++ Certified Professional Programmer

228 Questions

You can start the exam to practice all questions related to this exam.

Question No. 1

"What will happen when you attempt to compile and run the code below, assuming that you enter the following sequence: one two three<enter>?


#include <iostream> 
#include <string> 
using namespace std;

int main ()

{

string a; 
getline(cin, a); 
cout<<a<<endl; 
return 0;

}

Program will output:

"
Choose the correct option from the given list.
01 / 228

0 Discussions

Trending Exams