Friday, February 13, 2015

C Program to concatenate two strings

C++ Program to concatenate two strings

#include<iostream.h>
#include<conio.h>
#include<stdio.h>

void main()
{
clrscr();
char str1[30],str2[30],str3[60];
int i,j;
cout<<"Enter first string:";
gets(str1);
cout<<"
Enter second string:";

gets(str2);

for(i=0;str1[i]!=