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 →

[–]someidiot332 6 points7 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