Asked by marbel popoteur on Apr 24, 2024

The function ____ appends str2 to the end of str1.

A) strcpy(str1, str2)
B) strcmp(str1, str2)
C) strncpy(str1, str2,n)
D) strcat(str1, str2)

Strcat()

A function in the C programming language used to concatenate (append) one string to the end of another.

Strcpy()

A function used in C programming to copy one string to another.

Strcmp()

A function in C and C++ programming languages that compares two strings lexicographically.

  • Execute string manipulation in C through the application of functions including strcpy, strcat, and personalized functions.