Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus

What will be the output of the following C++ code if the string entered by the user is "Hello World"? #include <iostream> #include <string> using namespace std; int main(int argc, char const *argv[]) { string str; cin>>str; cout<<str; return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Hello

Related Computer Questions

Variable can hold ________ value at a time. From the following who invented Slide Rules? What is the purpose of the HBase Bulk Loading feature? What will be the output of the following C code? #include <stdio.h> int main() { FILE *fp = stdout; int n; fprintf(fp, "%d\n ", 45); fprintf(stderr, "%d ", 65); return 0; } To make the ImageHandler class portable you should create a separate file for it called __________