the_lurker
Re:Massacring C Pointers
on Tuesday June 26, 2018 @01:43AM (#17398157)
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.
Can someone please elaborate why it is bad? Are their any good resources to fill gaps in my knowledge?
Thanks in advance.
Edit: Thank you guys for pointing out so many problems. It seems that I have a lot to learn. :)