WAP to accept string from user and display on screen using gets() and puts().


Comments

  1. Anonymous12:06 PM

    #include
    void main()
    {
    char a[10],b[10];
    clrscr();
    printf(" enter the values of a=");
    gets(a);
    printf(" enter the values of b=");
    gets(b);
    strcat(a,b);
    puts(a);
    getch();

    }

    ReplyDelete

Post a Comment