46-Write a program to copy the string.

Program: 46

Write a program to copy the string.

#include
#include
void main()
{
        char source[20]="EASTERSCIENCE";
        char destination[20];
        strcpy(destination, source);
        printf("Value of second string is: %s", destination);
        getch();
}
Output
Value of second 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.