puts() function is a simplified version of the printf() function. : puts « stdio.h « C Tutorial






  1. puts() displays a string of text without all printf()'s formatting magic.
  2. puts() always displays the newline character at the end of its output.
#include <stdio.h>
 
int main()
{
    puts("error.");
    return(0);
}
error.








22.27.puts
22.27.1.puts
22.27.2.puts() function is a simplified version of the printf() function.
22.27.3.puts() can print variables