C Sharp (C#) - Strings and StringBuilder
Which of the following is the correct syntax to concatenate two strings
str1 and str2 in C#?str1 and str2 in C#?+ operator is used to join strings in C#. Other arithmetic operators like -, *, / are invalid for strings.string result = str1 + str2; correctly concatenates and assigns the result.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions