C – concat string pointers
#include <stdio.h> #include <string.h> int main() { char *a = "Hello "; char *b = "World"; char *c = malloc(strlen(a) + strlen(b) + 1); strcpy(c, a); strcat(c, b); printf("%s", c); return 0; }#include <stdio.h> #include <string.h> int main() { char *a = "Hello "; char *b = "World"; char *c = malloc(strlen(a) + Read more about C – concat string pointers[…]