top | item 46928140

(no title)

pantalaimon | 22 days ago

C is not a subset of C++, there are some subtle things you can do in C that are not valid C++

discuss

order

pjmlp|22 days ago

It is when compared with C89, also the ISO C++ requires inclusion of ISO C standard library.

The differences are the usual that occur with guest languages, in this case the origin being UNIX and C at Bell Labs, eventually each platform goes its own merry way and compatibility slowly falls apart with newer versions.

In regards to C89 the main differences are struct and unions naming rules, () means void instead of anything goes, ?: precedent rules, implicit casts scenarios are reduced like from void pointers.

uecker|22 days ago

Some subtle and some not so subtle.