The comment to this answer got me wondering. I\'ve always thought that C was a proper subset of C++, that is, any valid C code is valid C++ code by extension. Am I wrong a
See also Is it true that there is no need to learn C because C++ contains everything. There is a large common subset of C and C++; there are lots of extensions in C++ that are not in C; there are some bits in C that are not in C++ (mostly the bits you don't want to use); and there are some bits that are in C and C++ but are different.
I think it may be more correct to say that ANSI C is a subset of C++. Not K&R C.