Discussion :: C#.Net MCQs
-
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();}
Answer : Option D
Explanation :
'+' operator method works in the form of concatenate method() and hence is used to join two strings together. Output : HelloBye
Be The First To Comment