read a string containing whitespace c from stdin
well by only useing scanf you can take a string input with spaces but a bit lengthy and unprofessional look...
it will go like
char stringa, stringb,space;
space = ' ';
the last line will bring string a and b in a line.
*the above code will only enable to take a string input with one space...
for multiple you'll need to make it more complex.
i would still recomment gets.
1 members found this post helpful.