Answers for "how to concatenate string and integer and store it in a string in c"

C
32

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
5

how to combine strings in c

#include <stdio.h>
#include <string.h>
int main() {
	char str[80];
strcpy(str, "these ");
strcat(str, "strings ");
strcat(str, "are ");
strcat(str, "concatenated.");
printf("%s\n", str);
}
Posted by: Guest on February-06-2021

Code answers related to "how to concatenate string and integer and store it in a string in c"

Code answers related to "C"

Browse Popular Code Answers by Language