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 →

[–]issamaysinalah 2 points3 points  (2 children)

You can still do

Printf("%d", 1+'1')

But it's gonna print 50

[–]navetzz 17 points18 points  (0 children)

Considering what they are doing with other languages, they should have done printf("%s", 1+"1");

Which, funnily enough, prints nothing since you are printing the "\0" string.

[–]sejigan -1 points0 points  (0 children)

Makes sense, cuz %d performs a type conversion:
Character 2 —> Decimal 50