Array gratis di C

char *arr = malloc(3 * sizeof(char));
strcpy(arr, "bo");
// ...
free(arr);
Elegant Eel