Hello
is it possible to use the " character in a printf statment??
thanks
Printable View
Hello
is it possible to use the " character in a printf statment??
thanks
C# doesn't have a printf()....It is the WriteLine() that you are wanting...and yes you can use the " in it, but you need to escape it with a \
example
it displays: This is a "real" test.Code:using System;
Class myClass
{
public static void Main()
{
Console.WriteLine("This is a \"real\" test.");
}
}