1.

What is the output of this program?
#include <iostream>
using namespace std;
int main ()
{
char First_ch, Second_ch, Third_ch;
cout << "Enter any word or number: ";
First_ch = cin.get();
cin.sync();
Second_ch = cin.get();
cin.sync();
Third_ch = cin.get();
cout << First_ch << endl;
cout << Second_ch << endl;
cout << Third_ch << endl;
return 0;
}

A. Third
B. Second
C. First
D. Returns first 3 letter or number from the entered word
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs