could anyone tell about accepting a string with space,especially inside a for loop. i have tried getline,gets,but not getting desired output.
if i enter the string as: hey sum it is read as 2 inputs because of space in between.
explanation with a code is needed. thank you!