A Kotlin Char is, basically, just a regular number that represents a Unicode character (What are Unicode, UTF-8, and UTF-16?). Each number is assigned to a character, which we can look up in a unicode table. In this we can see that the letter a
has a decimal representation of 97
.

You could also get the decimal value using Char.code
fun main() {
println('a'.code)
}
97
Run in Kotlin Playground
Therefore, in decimal, 97 + 25 = 122
.
Looking up 122 in the Unicode table reveals that this is the decimal representation of z
. You can again use Char.code
to get the decimal representation.
fun main() {
println(('a' + 25).code)
println('a' + 25)
}
122
z
Run in Kotlin Playground