3 ms·
C isn't a subset of C++ (eg see [1]) but more importantly proper C++ has very little to do with C. In my experience people use "C/C++" to refer to "C with clas
by bnegreve 12y ago
C isn't a subset of C++ (eg see [1]) but more importantly proper C++ has very little to do with C.
In my experience people use "C/C++" to refer to "C with class compiled with a C++ compiler" rather than to "C or C++".
[1] http://stackoverflow.com/questions/1201593/c-subset-of-c-where-not-examples http://stackoverflow.com/questions/1201593/c-subset-of-c-whe...
- dragonwriter 12y agoI had thought I remembered reading somewhere that C++11 had made C++ a superset of C (I haven't used C++ in anger in quite a long time), but from further reading while it has closer aligned with C it hasn't actually subsumed it.
- bstamour 12y agoModern C and modern C++ are closer to siblings now, with the parent being K&R C. Each has added features that the other has not embraced, and writing code in one like you would in the other is a recipe for pain and suffering.