Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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
", str);
}
 
PREVIOUS NEXT
Tagged: #combine #strings
ADD COMMENT
Topic
Name
8+6 =