CI

C++ Certified Associate Programmer

219 Questions

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

Question No. 1

What is the output of the program if characters 'h', 'e', 'l', 'l' , 'o' and enter are supplied as input?

#include <iostream>
#include <string>
using namespace std;
void f();
int main()
{
f();
return 0;
}
void f()
{
char c;
c = cin.get();
cout << c;
if(c != '\n')
f();
}
A.
Choose the correct option from the given list.
01 / 219

0 Discussions

Trending Exams