0
scanf
I wrote two words to char array with scanf but it took only one word. Can you explain?
1 Resposta
+ 3
Scanf will read until the first white-space character. You can try gets, even better- fgets instead.
https://stackoverflow.com/questions/34007197/scanf-behaviour-for-strings-with-more-than-one-word
Remember to read the official documents. ✌️