okay, let make some example between 2 statements to save ppl's name :
[1] scanf ("%[^\n]", variable);
and
[2] getchar (variable);
----
so what's a deal between 2 of them? some of ppl said using scanf concept is more faster than the getchar.
in my mind, assume that user entered the input name as "rock rolly", so the scanf should be scan every char of the variable and store into the variable until it meet the newline command ('\n').
compare this ...
getchar could take the whole chars of the variable and directly save it to the variable (it don't care anythings in it, eg : blank space, special char ...)
so, how's the conclusion?