Question
Choose Output for the following set of code :
static void Main(string[] args){Â Â string s1 = "Hello" + " I " + "Love" + " ComputerScience ";Â Â Console.WriteLine(s1);Â Â Console.ReadLine();}
static void Main(string[] args){Â Â string s1 = "Hello" + " I " + "Love" + " ComputerScience ";Â Â Console.WriteLine(s1);Â Â Console.ReadLine();}
Answer: Option B
Was this answer helpful ?
Here '+' defined operator works as concatenation for strings.
Output : Hello I Love ComputerScience.
Was this answer helpful ?
Submit Solution