C# two double quotes

sai sindhu picture sai sindhu · Mar 6, 2012 · Viewed 47.9k times · Source

I want to print two double quotes in C# as the output. How to do this?

I mean the output should be: "" Hello World ""

Answer

Balazs Tihanyi picture Balazs Tihanyi · Mar 6, 2012
Console.WriteLine("\"\" Hello world \"\"");

or

Console.WriteLine(@""""" Hello world """"");