Trương Duy
New member
What will be the output of the following C++ code?
A. str
B. Input provided by the user
C. Error
D. Segmentation fault
Code:
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[])
{
string str;
cin>>str;
cout<<str;
return 0;
}
B. Input provided by the user
C. Error
D. Segmentation fault