anonymous
2016-04-07 23:06:33 UTC
I guess I am a little confused with pointers and I need your help. So, I have a function that should return a pointer. However, should I create the linked list head node outside the function or inside the function -- because I know that memory allocated locally are destructed when the function ends? Also, when I create a linked list inside the function, how do I return the head node?
Thanks!