Is C really forward-compatible with C++?
This chapter will be a bit of exploration, covering most of the banally boring bothersome beliefs concerning whether C++ is really backward compatible with C. As we were indoctrinated through the decades by our tutors, teachers, and trainers, C++ is mostly backward compatible with C. This means that much of C code can be compiled and run in C++ with little modification, as they share similar syntax and standard libraries.
<banalities reason="these were discussed somewhere else">
C and C++ may be closely related, like two siblings in a dysfunctional family, but still have many differences, leading to a love-hate relationship when it comes to compatibility. However, over time, the two languages have diverged significantly. According to the core rules, C is more permissive with looser typing rules, especially around pointers, and allows constructs like implicit pointer conversions, which C++ strictly forbids. For instance,...