# what is the return value of fputs()?

31 views
in General
closed
what is the return value of fputs()?

(a) EOF if an error occurs

(b) Non-negative if no error

(c) EOF if an error occurs & Non-negative if no error

(d) None of the mentioned

by (29.9k points)
selected

The correct option is (c) EOF if an error occurs & Non-negative if no error

To explain I would say: None.