(int)'E' + 5

guess the output

comments (single view)

Possibility 1: int comes first, hexadecimal

(int)'E' + 5 = 14 + 5 = 19

Possibility 2: int comes first, ascii

(int)'E' + 5 = 69 + 5 = 74

Possibility 3: + comes first, hexadecimal

(int)'E' + 5 = (int)'E5' = 229

Possibility 4: + comes first, scientific notation

(int)'E' + 5 = (int)'E5' = 100000

I think it’s most likely possibility 1

You mean possibility 2 or it returns 2?

possibility 2

View all comments