lily β€” 8/6/2022, 9:29:38 PM
(int)'E' + 5

guess the output

β™₯ 2 ↩ 0 πŸ’¬ 6 comments

comments

kalsep:

two answers:

if we are talking about ascii, 74

if we are talking about the tocharcode stuff, 107

8/8/2022, 3:11:02 PM
lily:

74

8/8/2022, 3:11:50 PM
pkmnq:

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

8/7/2022, 4:45:15 AM
lily:

2

8/7/2022, 7:47:00 PM
pkmnq:

You mean possibility 2 or it returns 2?

8/8/2022, 5:08:15 AM
lily:

possibility 2

8/8/2022, 1:07:31 PM