Massacring C Pointers
Yesterday I encountered a similar program on a HN comment chain as shown in this link.
I am genuinely confused as to why this program is bad. I am a student and I do not know the best practices regarding pointers, but it is how I would write a program to combine two strings.<p>Can someone please elaborate why it is bad?
Are their any good resources to fill gaps in my knowledge?<p>Thanks in advance.<p>Edit: Thank you guys for pointing out so many problems. It seems that I have a lot to learn. :)