Message from C, C++ talks

July 2019

β€” Yes!
But everything worked perfectly in my head πŸ˜‚

β€” Explain

β€” I made a pointer pointing to head so that I can traverse the list

β€” Oky

β€” 

Point is pointing to head right?
So it should traverse the list and point->next should store in point..

Any mistake here?

β€” Question 1 memory leak
head addr is 0xabcd....
...
Node *point = new Node();
(if point addr is 0x12345......)
point = head;
(point addr change is 0xabcd)
how release 0x12345...?
...

Message permanent page

β€” Question 2

β€” Where is init next point?

β€” So I need to dereference point to get value inside of head right?

β€” Https://bit.ly/2Jty4mb

β€” β˜ΊοΈ

β€” Https://paste.ubuntu.com/p/3F5KQpQ6yK

β€” Delete

β€” Thanks!
But I want to write by own to learn
I won't open it until I solve mine πŸ˜‚

β€” The best learn is readingπŸ˜‚