Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scan

Status
Not open for further replies.

Dannybe2

Programmer
Jan 31, 2001
136
GB
Using scanf, how do I save a string with spaces?
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top