Sail E0 Webinar
Question
Select output of the given set of Code :
static void Main(string[] args){    String name = "Dr.Gupta";    Console.WriteLine("Good Morning" + name);}
Options:
A .  Dr.Gupta
B .  Good Morning
C .  Good Morning Dr.Gupta
D .  Good Morning name
Answer: Option C


How to intialize a string variable and concatenate string using '+' operator. Output:Good Morning Dr.Gupta.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers