WAP to copy a string in to another.



Comments

  1. Anonymous12:18 PM

    #include
    void main()
    {
    char a[3],str[5];
    clrscr();
    printf(" enter the values of a=");
    gets(a);
    printf(" enter the values of str=");
    gets(str);
    strcpy(str,a);
    puts(a);
    puts(str);
    getch();
    }

    ReplyDelete

Post a Comment