0
Why this code prints 'A'?
2 Respuestas
+ 1
Char stores the unicode value of a character, in this situation x='B'=66 ; char y='b' = 98 ; char z='a'=97;
you do z+=x-y which is equivalent to z = z+(x-y). Substitute values in and you get
z =97+(66-98) which simplifies to z = 97 - 32 which equals z = 65 which is the unicode char value for 'A'
0
thank you very much...great expalin...💪💪