Scanf can read only signs until the next space comes.With this function you can read a string with spaces and with *c the newline will be deleted
Example
char hello[100];
Input
scanf("%s",s);
Hello Guys
output
printf("%s",s);
Guys
Anonymous
Levi
Matija
hamza
Begula
Strife
Ayush
Pavel
Jamil
coal
%Nikita