struct product* next; // < Thing i can not understand
This struct product* next; is quite confusing to me, it is first time i see struct pointer inside of struct, or whatever. Any1 here can explain to me how exactly does that work and how does it store itself in memory, i would very much like to know, thanks.
Help with Linked Lists!
Post a Reply
|Oldest Newest Rating|
· August 29, 2015
consider the following:
here, link is defined as a pointer to a struct node. a node has a value and it also has a pointer to another node. let me abstract this and show you what it's like with a picture.
as you can see, each node contains its two members. link is a pointer to a node as shown with an arrow to represent it. here is an example code:
One of the most popular languages of all time.
|Bucky Roberts Administrator|