C program to concat 2 Strings using Library function.


#include<stdio.h>
#include<conio.h>
int main()
{
    char str1[20], str2[20];
    printf("Enter the string: ");
    scanf("%s", str1);
    printf("\nString 1 = %s", str1);
    strcpy(str2, str1);
    printf("\nString 2 = %s", str2);
    getch();
    return 0;
}
C program to concat 2 Strings using Library function. C program to concat 2 Strings using Library function. Reviewed by on December 25, 2019 Rating: 5

No comments:

Powered by Blogger.