Answers for "making string by using strncat in c"

C
12

c concatenate strings

char str[80];
strcpy(str, "these ");
strcat(str, "strings ");
strcat(str, "are ");
strcat(str, "concatenated.");
Posted by: Guest on March-22-2020
1

strncat in c

Input:  src = "world"
        dest = "Hello "
Output: "Hello world"

Input:  src = "efghijkl"
        dest = "abcd"
Output: "abcdefghi"
Posted by: Guest on May-16-2021

Code answers related to "C"

Browse Popular Code Answers by Language