C Programming/stdio.h/puts

is a function used to output a string (plus a newline), for example, output (on stdout): welcome to WIKIPEDIA!!!

Differences from printf:

1.  prints a newline after the supplied text

2.  prints the string as is (it does not process % codes).

We can also pass a variable to, for example, output: welcome to WIKIPEDIA!!!

has the following prototype:

int puts(const char *str)

It will print each byte at  until a null is reached, then print a newline. returns the number of bytes written (including the newline), or EOF (if an error occurred.)

To print a string without processing % codes, or outputting a newline, try: