The most convenient function for printing a simple message on standard
puts. It is even simpler than
printf, since you
do not need to include a newline character --
puts does that for
puts couldn't be simpler. Here is an example:
puts ("Hello, multiverse.");
This code example will print the string
Hello, multiverse. to standard
puts function is safe and simple, but not very flexible.
See Formatted string output, if you want to print fancier output.