2 ms·
Unfortunately, that's not true. C is not 100% compatible with C++. There's a whole heap of incompatibilities that you can hit, that will prevent a lot of non-
by shakna 2y ago
Unfortunately, that's not true.
C is not 100% compatible with C++.
There's a whole heap of incompatibilities that you can hit, that will prevent a lot of non-trivial C programs from compiling under C++. Things like character literals being a char in C++ and an int in C. Or C allowing designated initialisers for arrays, but C++ not.
- qalmakka 2y agoI know, but it's not incredibly hard to work with them to be fair. People have been mixing C and C++ for decades now, we know where the sharp edges are pretty well