Advertisement
sabbirarif

String concatenation

Dec 7th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     char s[100];
  5.     char a[50];
  6.     gets(s);
  7.     gets(a);
  8.     strcat(s,a);
  9.     printf("%s\n",s);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement