0
Why does the statement (1_0 == 10) evaluate to true?
Saw this in a challenge and I was really confused that this statement evaluates to true. Tried it only in Java so idk if it works in other languages to, therefore the Java tag.
1 Respuesta
+ 3
_ (in java) is used just for the purpose of increasing readability.
eg- like in real life we can write 1000 as 1,000 ( , here doesn't mean anything)