C program to concatenate two strings?

Answer:
#include<stdio.h>
#include<string.h>
void main()
{
char a[30],b[30];
clrscr();
printf("Enter the string a:");
gets(a);
printf("Enter the string b:");
gets(b);
printf("%s",strcat(a,b));
getch();
}
First answer by Naithee. Last edit by Naithee. Contributor trust: 5 [recommend contributor recommended]. Question popularity: 0 [recommend question].