#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[])
{
string str;
cin>>str;
cout<<str;
return 0;
}
a) Hello World
b) Hello
c) World
d) Error
What will be the output of the following C++ code if the string entered by the user is “Hello World”?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C++ code if the string entered by the user is “Hello World”?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!