#include<stdio.h>
char * strcat1(char *dest,char *src);
int main(int argc, const char *argv[])
{
char ch1[10]=“1234”;
char ch2[5]=“5678”;
char *q=strcat1(ch1,ch2);
puts(ch1);
printf("%p\n",q);
return 0;
}
char * strcat1(char *dest,char *src)
{
char *p;
int i;
p=dest;
for(i=0;*dest!=’\0’;i++)
{
dest++;
}
while(*src!=’\0’)
{
*dest=*src;
dest++;
src++;
}
*dest=’\0’;
return p;
}