Character Constants
Character Literals Single Quotes में Enclosed होते हैं। उदाहरण के लिए, 'x' और इन्हें Char Type के Simple Variable में Store किया जा सकता है। Character Literal Plain Character (जैसे 'x'), Escape Sequence (जैसे '\t'), या Universal Character (जैसे '\u02C0') हो सकता है।
C# में कुछ Characters Backslash से Preceded होते हैं। उनका Special Meaning होता है और वे Newline (\n) या Tab (\t) जैसे Represent करने के लिए उपयोग किए जाते हैं।
Example
using System; namespace Demo { class MyApplication { static void Main(string[] args) { Console.WriteLine("Welcome\t to the website\n\n"); Console.ReadLine(); } } }Output
Welcome to the website
String Literals
String Literals या Constants Double Quotes "" या @"" में Enclosed होते हैं। String में Characters होते हैं जो Character Literals के समान होते हैं: Plain Characters, Escape Sequences, और Universal Characters।