Show few escape sequence characters - CSharp Language Basics

CSharp examples for Language Basics:char

Introduction

\\ \ character
\' ' character
\" " character
\? ? character
\a Alert or bell
\b Backspace
\f Form feed
\n Newline
\r Carriage return
\t Horizontal tab
\v Vertical tab
\xhh . . . Hexadecimal number of one or more digits

Demo Code

using System;/*from   w  w w.j  ava2s  .co m*/
class Program {
   static void Main(string[] args) {
      Console.WriteLine("Hello\tWorld\n\n");
      Console.ReadLine();
   }
}

Result


Related Tutorials