Is it correct that in c programming when we pass the parameter *pointer_for_string, sizeof_string and the *stream for the fgets function: we do not have to write back the return of the function back to the actual *pointer_for_array that was defined earlier/gave as the parameter for fgets.
Why would that be a mistake?
char string_ofsize_ten[10];
string_ofsize_ten = fgets(string_ofsize_ten, 10, stdin);
New contributor
plantpot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.