Is C code still considered C++?

前端 未结 8 1250
小鲜肉
小鲜肉 2021-01-11 22:52

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

8条回答
  •  感情败类
    2021-01-11 23:49

    I think it may be more correct to say that ANSI C is a subset of C++. Not K&R C.

提交回复
热议问题