char *_strcat(char *dest, char *src)
{
char *temp = dest;
while (*dest)
dest++;
while (*src)
*dest++ = *src++; ====> this line
*dest = '\0';
return (temp);
}
I don't understand the line of code I specified above; does it update both the value and address of dest
, or does it just update the value.and also what is the main logic here.I am lost!