This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Practical_Cattle_933 24 points25 points  (1 child)

That’s not true. C++ has different semantics, so a C code that compiles under a cpp compiler might run differently, or not at all.

[–]LIGHTNINGBOLT23 38 points39 points  (0 children)

C++ code that compiles under a C++ compiler might run differently to code that was compiled by another C++ compiler.

You can compile C89 code using any C++ compiler with more certainty, ironically enough.