. Advertisement .
..3..
. Advertisement .
..4..
How do I read a string with spaces in c? Your suggestions would help me a lot.
Please use “gets”: Syntax : char *gets(char *str)#include <stdio.h>
int main()
{
char str[20];
gets(str);
printf("%s", str);
return 0;
}
1 Answer