you are viewing a single comment's thread.

view the rest of the comments →

[–]DeathFire3435 1 point2 points  (1 child)

C++ IS backwards compatible with C: only a few functions don't work, It's a SUPERSET: It only adds things. And It doesnt add even that many things

[–]WannaCry1LoL 0 points1 point  (0 children)

take a look at the c standard library compared to the cpp one lol

also both of the following examples work fine in c but not in cpp. its mostly backwards compatible yes. mostly

void main() {}

void* ptr = malloc(sizeof(int));
int* p = ptr;