wap to concertinate the string by using standard library function (strcet).

 

#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
  char a[20],b[20];

  printf("enter the 1st string :");
  scanf("%s",a);

  printf("enter the 2st string :");
  scanf("%s",b);
  
  

  printf("\nstring after concertinate %s",strcat(a,b));


}

output :

enter the 1st string :rahul enter the 2st string :chaurasiya string after concertinate rahulchaurasiya

Comments