Better HN
topnewbestaskshowjobs
Log inSign up

the_lurker

16 karma · joined Jun 2, 2018 (8y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

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. :)