I have read that most of the new C++ compilers can compile both C and C++ programs and also read that not to use the extension .cpp to a C programming file so as to inform the compiler to compile in C. What is the difference in "C compile" and "C++ compile" using a C++ compiler. Is there any problem when a C program is given extension .CPP and compiled with a C++ compiler ?
Given a C program with C++ constrains( like not using typename, new, private, class etc as Identifiers ) how differently does a C++ compiler compile the C program with .CPP extension compared to a C compiler.