please explain it to me that what is the dfference between
puts(string name)
and fputs(string name,stdout)
both of them have the same output especially when I use fgets(string name,n,stdin)
for get std size of a string for a safe code ,
but after that and for print to output , what is the difference between them although both of them have the same output?
puts
is equivalent tofputs("",stdin)
, but with a newline character after the string. – Malacologyfputs
andputs
reference. – Brunhildefputs("",stdout)
because you cannot write tostdin
– Eulogistic