Question:What is the output of the following code?
Console.WriteLine(5 + 10 + "15");
A 15
B 1515
C 15 15
D 20
/28
+ Answer
B
+ ExplanationIn C#, when you use the + operator, if either operand is a string, it performs string concatenation. Here, 5 + 10 evaluates to 15, and then "15" is concatenated, resulting in "1515".