C – Puts 2017-06-12T10:38:50+00:00


It is used to display a string on a standard output device. The puts() function automatically inserts a newline character at the end of each string it displays, so each subsequent string displayed with puts() is on its own line. puts() returns non-negative on success, or EOF on failure.

The following program illustrates the use of puts function.

Output :

Enter a string

Hai friend

Given string is  Hai friend

Prev Next