0
How to store multiple string in single variable
C code
2 Answers
+ 1
We use getline to take space separated string in a single line
string s;
getline(cin,s);
+ 1
Do you want to read a sentence with multiple words? or do you want to have one variable that can be used for storing multiple string?