Is it bad practice to use a C header instead of its C++ equivalent in C++ (e.g. stdio.h instead of cstdio)?
It seems that a lot of people include example.h instead of cexample in their C++ code. I know that everything in the C++ versions is declared in namespace std, but I'm not aware of any other differences. So why do people use the C headers, and is it okay to do so? The difference between the two is that the C headers that C++ imported (by prefixing with c and removing the .h suffix) are in namespace std . This so any call or use of a standard facility is prefixed with std:: , for uniformity. It's The Standard Way Of Doing Things(tm) . Unless of course you already have a bunch of C code in which