Please tell me something about escape variables? please tell me there uses.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please tell me something about escape variables? please tell me there uses..

like \n,\t

8th Jan 2017, 5:23 AM
Rushikesh Kumbhar
5 Answers
+ 4
Just a copy past from a part of the web page linked previously: Escape sequence / Description / Representation \' single quotebyte 0x27 in ASCII encoding \" double quotebyte 0x22 in ASCII encoding \? question markbyte 0x3f in ASCII encoding \\ backslashbyte 0x5c in ASCII encoding \a audible bellbyte 0x07 in ASCII encoding \b backspacebyte 0x08 in ASCII encoding \f form feed - new pagebyte 0x0c in ASCII encoding \n line feed - new linebyte 0x0a in ASCII encoding \r carriage returnbyte 0x0d in ASCII encoding \t horizontal tabbyte 0x09 in ASCII encoding \v vertical tabbyte 0x0b in ASCII encoding \nnn arbitrary octal valuebyte nnn \xnn arbitrary hexadecimal valuebyte nn \unnnn universal character name (arbitrary Unicode value); may result in several characterscode point U+nnnn \Unnnnnnnn universal character name (arbitrary Unicode value); may result in several characterscode point U+nnnnnnnn
8th Jan 2017, 5:48 AM
visph
visph - avatar
+ 3
\n is for new line ( in windows system, need to be combined with \r ) \t is for tabulation character You can find more at: http://en.cppreference.com/w/cpp/language/escape
8th Jan 2017, 5:37 AM
visph
visph - avatar
+ 3
Well, you thanks ( and upvotes ) my copy-paste, but for my first answer, you just claims "other ?", without simply click the link I post with complete ressource which would have provided to you at least the same information, better readable :|
8th Jan 2017, 5:58 AM
visph
visph - avatar
0
other ?
8th Jan 2017, 5:41 AM
Rushikesh Kumbhar
0
thanx
8th Jan 2017, 5:51 AM
Rushikesh Kumbhar