If the C++ compiler provides its own versions of the C headers, the versions of those headers used by the C compiler must be compatible. Oracle Developer Studio C and C++ compilers use compatible headers, and use the same C runtime library. They are fully compatible.
Mar 8, 2011Yes, some compilers do support C99. GCC probably does, but I only have experience using MSVC and they don't support it.What issues can I expect compiling C code with a C++ compiler?Is there a way to compile C++ to C Code? [closed] - Stack OverflowIf I treat my C code like C++ code, will it run like normal? [duplicate]Compiling C and C++ files together using GCC - Stack OverflowMore results from stackoverflow.com
The C++ language provides mechanisms for mixing code that is compiled by compatible C and C++ compilers in the same program. You can experience varying degrees of success as you port such code to different platforms and compilers.