Question
Select the output for given set of code:
static void Main(string[] args){Â Â string s1 = "Hello" + "c" + "Sharp";Â Â Console.WriteLine(s1);Â Â Console.ReadLine();}
static void Main(string[] args){Â Â string s1 = "Hello" + "c" + "Sharp";Â Â Console.WriteLine(s1);Â Â Console.ReadLine();}
Answer: Option A
Was this answer helpful ?
Here '+' operator works as concatenation for strings.
Output : Hello c Sharp
Was this answer helpful ?
Submit Solution