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

The Allow ________ property controls whether new records can be added through the form. What is the syntax used to write comments in Python? Which method is used to find the length of an array in Ruby? What is the space complexity of the following recursive implementation to find the nth fibonacci number? int fibo(int n) { if(n == 1) return 0; else if(n == 2) return 1; return fibo(n - 1) + fibo(n - 2); } int main() { int n = 5; int ans = fibo(n); printf("%d",ans); return 0; } Which method is commonly used to assert that a certain exception is raised in RSpec?