Nov 4, 2003 #1 Dannybe2 Programmer Jan 31, 2001 136 GB Using scanf, how do I save a string with spaces?
Nov 5, 2003 #2 samibami Programmer Oct 12, 2003 28 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.