Asked in
Computer Programming
Java Programming
C Programming

Write a program to concatenate two strings without use of standard function?

Answer

User Avatar
Wiki User
May 07, 2014 12:08PM

Your homework, innit?

const char *from1= "Part1";

const char *from2= "Part2";

char *to= malloc (256);

char *q= to;

while (*q++ = *from1++);

--q;

while (*q++ = *from2++);