[Solved] C and C++ see which compiler used for which code


to answer your specific question about knowing if its a c or c++ compiler processing your code you can look for

__cplusplus

standard define

It’s common to see:

 #ifdef __cplusplus
    extern "C"{
 .....

solved C and C++ see which compiler used for which code