#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
char s[] = "c c++";
int len_s = strlen(s);
int totaltimes = 5;
char *p = (char *)malloc(len_s * sizeof(char) * totaltimes + 1);
for (int i = 0; i < totaltimes; i++) {
strcat(p, s);
}
puts(p);
free(p);
return 0;
}
/*
run:
c c++c c++c c++c c++c c++
*/