Thursday, October 4, 2012

Famous '\' sequences

Special use for '\' sequences

In C# and Java there is a lot of uses for \ so here is some of the famous sequences you'll need to know in order to be able to use them.



\n

New line

\t

Tab = wide white space

\'

Single quotation mark

\"

Double quotation mark

\\

Backslash
NOTE: Any character from above characters and any others that consist of '\'+a character or sequence of characters called Escape Sequences.

Read more about this

  1. You can find useful and more clear explanation about the escape sequences on wikipedia.
  2. You can also see Microsoft MSDN.
Please feel free to ask or comment.
Thank you for reading and enjoy your day.


No comments:

Post a Comment