Q978
What will be the output of the following C++ code? #include using namespace std; int main () char first, second; cout << "Enter a word: "; first = cin.get(); cin.sync(); second = cin.get(); cout << first << endl; cout << second << endl; return 0;
A.
first
B.
second
C.
returns first 2 letter or number from the entered word
AnswerD.
third
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board