Nov 4, 2003 #1 Dannybe2 Programmer Joined Jan 31, 2001 Messages 136 Location GB Using scanf, how do I save a string with spaces?
Nov 5, 2003 #2 samibami Programmer Joined Oct 12, 2003 Messages 28 Location IL can u b more specific? however,here's what i thought i should answer... char string[100]; scanf("%s",string); what's with the spaces? they are considered as chars too. Upvote 0 Downvote
can u b more specific? however,here's what i thought i should answer... char string[100]; scanf("%s",string); what's with the spaces? they are considered as chars too.