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.