I have been trying to concatenate two strings declared in the form of pointers i.e.
char* chars;
But the program crashes...
Here is the code:
char *chars1="ankit";
char *chars2="sameer";
char *temp;
int i;
for(i=0;i<len;i++)
{
temp[i] = chars1[i];
}
for(int j=0;j<len2;j++)
{
temp[i] = chars2[j];
i++;
}
help me out :)