Escape sequences in strings : Escape sequences : Data Type C# Examples


C# Examples » Data Type » Escape sequences »

 

Escape sequences in strings









    
using  System;  
  
class  Example  {        
    public  static  void  Main()  {        
  
        Console.WriteLine("\"Why?\",  he  asked.");  
    }
}
    
   
  
   



Output

"Why?", he asked.


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Escape sequences