This is because:
'\10' = 10 in octal = 8 in decimal

there is also a notation for hexadecimal:
'x10' = 10 in hexadecimal = 16 in decimal

There is... strangely enough... no way in C/C++ to...