Monday 4 March 2013

USING ESCAPE SEQUENCE

ESCAPE SEQUENCE:

Character   Escape Sequence name
\' ------------------------ Single quote 
\"  ------------------------ Double quote
\\  ------------------------ Backslash
\0  ------------------------ Null
\a  ------------------------ Alert
\b  ------------------------ Backspace
\f  ------------------------ Form feed
\n ------------------------  New line
\r  ------------------------ Carriage return
\t  ------------------------ Horizontal tab
\v  ------------------------ Vertical quote

SAMPLE:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication35
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Terrorism \t has no religion\a\n");
        }
    }
}
/////////////////////////////////end////////////////////////////////////////
explore yourself

No comments:

Post a Comment