Q. Which function is used to concatenate two strings in C?
β
Correct Answer: (D)
strcat()
Explanation: In C programming language, the strcat() function is used to concatenate two strings.
Syntax:
strcat(s1, s2);
This function concatenates string s2 onto the end of string s1.