Vidyalelo
C# Programming · Q26

Operators and Expressions in C Sharp

Programming · C# Programming · question 26

Q26

Which of the following is the correct way to perform string concatenation in C#?

A.
string result = "Hello" add "World";
B.
string result = "Hello" . "World";
C.
string result = "Hello".concat("World");
D.
string result = "Hello" + "World";
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board