puts()
Prototype: int puts(const char *astring);
Header File: stdio.h (C) or cstdio (C++)
Explanation: This function, puts, will output the string pointed to by
astring. It will then add a newline character. This is built in to the
function. It returns a nonnegative integer if it was successful. It returns
EOF if there was an error.
//Example outputs "Hello, World" with a newline
#include <cstdio>
using namespace std;
int main()
{
puts("Hello World");
}
Other Functions