Multiple choice technology programming languages

_tcscat(str1, str2) function in C++ is similar to this in C Sharp.

  1. strcat(str1,str2)

  2. str1.Append(str2)

  3. str1.CopyAtEnd(str2)

  4. str1=str1+str2

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In C#, string concatenation is done using the + operator, so str1=str1+str2 appends str2 to str1. Unlike C's strcat() function, C# uses overloaded operators for string manipulation.