back

by AlexeyBrin·3y ago·view on hn ↗
C++ is not a superset of C, there are plenty of legal C constructs that will trigger errors when compiled with a C++ compiler.
3 comments
C 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
C++ is a sane defaults superset of C.
But most of them are new constructs, not found in the venerable C90.