If we want to write a module in C and have to compile it as C++ with g++, is it OK to develop a piece of code in C++ without any own classes, only using “global / static functions” as in C? So, simply said, to code C in C++ (with only few system header changes etc.)
If we want to write a module in C and have to compile it
Share
Yes. In fact, it’s generally a good idea because C++ enforces stronger type-checking than C.