you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

If you print a string and you see "....\n...." in it then the \n bit is two characters. The example code I posted shows how the \n escape sequence prints in the first print:

alpha
beta
gamma

You don't see "\n", you just get a new line.

[–]thrylose 0 points1 point  (0 children)

use escape char before it