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

[ad_1]

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"{
 .....

[ad_2]

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