Namespaces
Variants
Views
Actions

puts

From cppreference.com
< c | io
Defined in header <stdio.h>
int puts( char *str );

Writes character string str and a newline to stdout

Contents

[edit] Parameters

str - character string to be written

[edit] Return value

non-negative number on success or EOF otherwise

[edit] Example

#include <stdio.h>
 
int main(int argc, char** argv)
{
    puts("Hello World");
    return 0;
}

Output:

Hello World

[edit] See also

writes a character string to a file stream
(function) [edit]
prints formatted output to stdout, a file stream or a buffer
(function) [edit]