47-Write a program to join two strings.

Program: 47

Write a program to join two strings.

#include
#include
void main()
{
        char str1[20]="EASTER";
        char str2[20]="SCIENCE";
        strcat(str1, str2);
        printf("Value of first string is: %s", str1);
        getch();
}
Output
Value of first string is: EASTERSCIENCE
Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Related Post
Leave a Comment

This website uses cookies.