#include <stdio.h>
#include <string.h>

int main() {
    char str1[10] = "hi";
    char str2[] = "bye";

    // Concatenate str2 to str1
    strcat(str1, str2);

    // Print the result
    printf("Resulting string: %s\n", str1);

    // each character of resulting string:
    // strcat removes the null terminator from str1 and appends str2 to the end of str1
    for (int i = 0; i <= strlen(str1); i++) {
        printf("%c\n", str1[i]);
    }

    return 0;
}