Question
What will be the output for the given set of code?
static void Main(string[] args) { String c = "Hello"; String a = c + "Bye"; Console.WriteLine(a); Console.ReadLine(); }
static void Main(string[] args) { String c = "Hello"; String a = c + "Bye"; Console.WriteLine(a); Console.ReadLine(); }
Answer: Option D
Was this answer helpful ?
'+' operator method works in the form of concatenate method() and hence is used to join two strings together.
Output : HelloBye
Was this answer helpful ?
Submit Solution