2 ms·
C++ is not a superset of C, there are plenty of legal C constructs that will trigger errors when compiled with a C++ compiler.
by AlexeyBrin 4y ago
C++ is not a superset of C, there are plenty of legal C constructs that will trigger errors when compiled with a C++ compiler.
- wiseowise 4y agoC++ is a sane defaults superset of C.
- 3836293648 4y agoC is not a superset of C either. C++ is a superset of a C version, even if they then went on to add stuff that wasn't added to the other
- kazinator 4y agoBut most of them are new constructs, not found in the venerable C90.