Search This Blog

Translate

string append c programming

string append c programming, c++ string append char,c program for string concatenation,c program for string concatenation using pointers,c program for string concatenation without library functions,c program for string concatenation without using strcat,string concatenation in c without using strcat,c program to concatenate two strings using pointers,c strcat,



#include"stdio.h"
#include"conio.h"
void main()
{
char ch[20],ch1[20],ap[40];
int i,j=0;
clrscr();
printf("Enter 1 string=");
gets(ch);
printf("\n\nEnter 2 string=");
gets(ch1);
for(i=0;ch[i]!='\0';i++)
{
ap[j++]=ch[i];
}
for(i=0;ch1[i]!='\0';i++)
{
ap[j++]=ch1[i];
}
ap[j]='\0';
printf("\n\nAfter append string is= %s",ap);
getch();
}

string append c programming, c++ string append char,c program for string concatenation,c program for string concatenation using pointers,c program for string concatenation without library functions,c program for string concatenation without using strcat,string concatenation in c without using strcat,c program to concatenate two strings using pointers,c strcat,

C Program example List

Google+ Badge