Man scanf

s Matches a sequence of non-white-space characters; the next
pointer must be a pointer to character array that is long enough
to hold the input sequence and the terminating null character
(’\0’), which is added automatically. The input string stops at
white space or at the maximum field width, whichever occurs
first.


ti consiglio di non usare queste funzioni a meno che tu non debba effettuare delle conversioni

per esempio mettere in tre variabili tre numeri dalla stringa "44 98 54"
in cui faresti la format "%d %d %d, I, J, K"

se devi copiare una stringa usa strcpy(), e in generale tutte le funzioni in string.h