Answer to Question #161920 in C++ for Medhana

Question #161920

1 point

I have to read the string “What is your name?” into a variable x. Which of the following is the appropriate command sequence?


x; cin>>x;

 

char x; cin<<x;

 

string x; cin>>x;

 

char x; cin>>x;


1
Expert's answer
2021-02-07T16:49:30-0500
string x;
cin >> x;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment