lets say i have a linked list with only one value at head
if i say
then if i sayCode:node *head=(first input) *pointerb=head; pointer->next=(new input)
Code:head->next=.... will it point to the new input?
lets say i have a linked list with only one value at head
if i say
then if i sayCode:node *head=(first input) *pointerb=head; pointer->next=(new input)
Code:head->next=.... will it point to the new input?
Well I guess that depends on what "..." is and what "it" refers to.
If you understand what you're doing, you're not learning anything.
I have no idea what "pointerb" or "pointer" point to.
Don't muck us about with attempts to make tiny code snippets that you think demonstrate everything relevant, which actually don't.
Real code please!
My homepage
Advice: Take only as directed - If symptoms persist, please see your debugger
Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"