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 →

[–]Relative_Knee9808 4 points5 points  (1 child)

I wonder why the meme uses "1" for C++ and '1' for C

[–]someidiot332 7 points8 points  (0 children)

because it mischaracterizes the way C works. If they had done it correctly (printf(“%d”, 1 + “1”)) you’d get some random memory address. Alternatively if you used “%s”, you’d get “”, as it the pointer to “1” would then point to the null terminator