I noticed that some C++ textbooks use C functions like printf
as std::printf
(include via <cstdio>
rather than <stdio.h>
).
However, in most C++ codes I saw in Github (including those written by professional developers), they just use <stdio.h>
and printf
. No sane programmer will name his function as printf
or any famous C-function names anyway as other readers will likely to get confused.
It looks like there is no real benefit of using std::printf
other than having to type more characters.