Generation

generate functionTue, 28 Feb 2023

recieve a string and return a string that contains five of those strings one after the other

void add(char* a, char* b){ char result[5] = {0}; strcpy(result, a); strcat(result, a); strcat(result, a); strcat(result, a); strcat(result, a); return result; }

Questions about programming?Chat with your personal AI assistant