r/programming • • May 01 '18

C Is Not a Low-level Language - ACM Queue

https://queue.acm.org/detail.cfm?id=3212479
152 Upvotes

303 comments sorted by

View all comments

Show parent comments

14

u/Charles_Dexter_Ward May 01 '18

Most would but, for example, you can have a variable named "class" or "new" in C and a C++ compiler would complain.

4

u/meneldal2 May 02 '18

#define class notclass

3

u/Charles_Dexter_Ward May 02 '18

Yes, there are ways to modify C code to compile under C++. The point was that C++ is not a proper superset of C and there are valid C programs that do not compile under strict C++.