C examples for stdio.h:puts
function
<cstdio> <stdio.h>
Write string to stdout
int puts ( const char * str );
Parameter | Description |
---|---|
str | C string to be printed. |
On success, a non-negative value is returned.
On error, the function returns EOF and sets the error indicator (ferror).
#include <stdio.h> int main ()//from w w w. j ava 2 s .c o m { char string [] = "Hello world!"; puts (string); }