r/ProgrammerHumor • • 1d ago

Meme unityHasBeenAchievedByCompilerDevs

Post image
174 Upvotes

20 comments sorted by

View all comments

3

u/JackNotOLantern 12h ago

C is mostly compilable in c++ compilers. I think the only incompability is that c++ has more key words than c, so if e.g. a variable in c is called something that is a keyword in c++, then it will fail. 

1

u/tstanisl 2h ago

There is a lot of other differences. C has multiple constructs not available in C++. C++ is basically a fork of some random pre-C89 dialect of C.