What will be the output of the following C# code?
static void Main(string[] args)
{
String name = "Dr.Gupta";
Console.WriteLine("Good Morning" + name);
}
static void Main(string[] args)
{
String name = "Dr.Gupta";
Console.WriteLine("Good Morning" + name);
}
A. Dr.Gupta
B. Good Morning
C. Good Morning Dr.Gupta
D. Good Morning name
Answer: Option C
Join The Discussion