Escaping characters problem | Sololearn: Learn to code for FREE!


Escaping characters problem

Here I was playing with different letters instead of "\n" and "\t" and found some letters that work pretty interesting, ("\a", "\b", "\v") which add a space in the text and "\r" which just escapes the letter 'r', unlike adding any other wrong letter after '\'. Can anyone explain them to me? It would be highly appreciated.

3/20/2018 10:12:15 PM

Andrei Cereanu

2 Answers

New Answer


You don't need to invent a bicycle. Some escape sequences won't work in SoloLearn output console due to restrictions (like \r, which is a carriage return).


Thanks @Maxim Zinyakov didn't think of that...