2 ms·
Isn't all C also valid C++? So this would apply?
by tayo42 2y ago
Isn't all C also valid C++? So this would apply?
- Macha 2y agoNo: https://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B https://en.wikipedia.org/wiki/Compatibility_of_C_and_C%2B%2B There's the small stuff like "class" is a keyword in C++ so not a valid variable name. There's the fact that C has continued to evolve so there are new C features that haven't made it into C++ yet (VLAs). There's stuff that has been implemented differently in both in mostly compatible but sometimes observably different ways (e.g. the types of character and boolean literals)
- tayo42 2y agoInteresting I Wonder why I thought that then