Thursday, May 3, 2012

Program in C to Concatenation of two Strings


/*****<soeasyprograms.blogspot.in>*****/
  #include<stdio.h>
  #include<conio.h>
  #include<string.h>
   void main()
    {
     char c[100];
     char a[50];
     char b[50];
     clrscr();
     printf("Enter a string1:");
     gets(a);
     printf("Enter a string2:");
     gets(b);
     strcat( a,b);
     printf("%s",a);
     getch();
    }


Output of this Program is:
Dont forget to give comments




No comments:

Post a Comment