Tuesday, December 27, 2011
9:09 PM

C Program to Concatenate Two string


Program to Concatenate Two string







#include
void main(){char a[10],b[10],c[20],d;int i=0,j,k;
//first stringprintf("enter the 1st string :");gets(a);
//second stringprintf("enter the 2nd string :" );gets(b);
//storing first string in temporary variable for(k=0;a[k]!='\0';k++) c[i++]=a[k];
printf("do you want to enter space between words y/n :"); scanf("%c",&d); if(d=='y') { c[i++

0 comments:

Post a Comment