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

int main() {
    char str1[50], str2[50], result[100];

    printf("Enter the first string: \n");
    scanf("%s",str1);

    printf("Enter the second string:\n ");
    scanf("%s",str2);

    strcpy(result, str1);
    strcat(result, str2);

    printf("Concatenated string: %s\n", result);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: