Welcome Guest.

2Answers

What do the commonly used escape characters \n,\t,\r,\\,\\, etc. mean?

Asked by: Gary 169 views Software October 6, 2020

What do the commonly used escape characters \n,\t,\r,\\,\\, etc. mean?

2 Answers

  1. +3Votes  

    \n Line feed, under windows system, it is carriage return+line feed

    \t TAB, usually 4 spaces

    \r carriage return

    \\ is \ itself

    There will be a table in the general tutorial, this is just a simple escape, not difficult to understand

    Cheryl Phillips- October 7, 2020 |

  2. +6Votes  

    \n line feed, \r carriage return, \t horizontal tabulation, \\
    backslash character’\’, \v
    vertical tab, \b
    back Grid, \f
    feed and page feed, \’
    single quote character

    \a
    bell, \ddd
    1 to 3 octal numbers The characters represented by \xhh
    characters represented by 1 to 2 hexadecimal numbers

    probably that’s it, I hope the host will adopt

    Gerald- October 7, 2020 |