What will be the output of the following code?
char a = 'A', z = 'Z';
Here we don't even need to remember the ASCII codes
For A: ASCII of A = x
For B: ASCII of B = x+1
For Z: ASCII of Z = x+25
Hence z-a = x+25 - x = 25
ASCII value of z - ASCII value of a = 25.