puts(const char *X) does almost the same as printf("%s\n",X); Used in C++

Actually, ANSI C, not just C++. It's also more efficient than printf, which will scan through the entire format string before writing. puts() won't. It just writes.

Log in or register to write something here or to contact authors.