C program for Concatenation of strings (Automatic)

#include <stdio.h>
#include <string.h>
int main() 
{
    char s1[50], s2[50];

    printf("Enter two strings :  ");
    scanf("%s %s", s1, s2);

    strcat(s1, s2);

    printf("Result: %s", s1);
}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices