WAP to demonstrate string concatenation.


Comments

  1. ROHIT CHAVAN CSE ATPADI@712:17 PM

    #include
    void main()
    {
    char a[3],b[3];
    clrscr();
    printf("Enter elements of string a :");
    gets(a);
    printf("Enter elements of string b :");
    gets(b);
    strcat(a,b);
    puts(a);
    getch();

    }

    ReplyDelete

Post a Comment