Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will be the output of the following C++ code? #include <iostream> 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; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • returns first 2 letter or number from the entered word

Related Computer Questions

The getdate() function returns A key of type ______ is generated which is used later to join ngrams with their heads and tails in the reducer phase. MapReduce jobs submitted from either Oozie, Pig or Hive can be used to encode, improve and sample the data sets from ______ into R. In HBase, what is the primary purpose of the HBase Online Schema Change? What will be the output of the following C# code? class Output { public static void main(String args[]) { try { int a = 5; int b = 10; int c = b / a - 5; Console.WriteLine("Csharp"); } } }