Generally, every C program will compile with a C++ compiler. It doesn't work the other way around. C++ is C with some extensions. If you plan to move your code back to a pure C compiler eventually (e.g. for the microcontroller), you should make sure you don't use any C++ extensions while developing with the C++ compiler.