3. Structures having struct type pointer to
itself is like any other pointer which can
point to the next struct of same
type(node), which is the concept of linked
list.
4. Integer Type Member (int variable)
STUCTURE Alpha Base address AF14BCD99
Char Type Member (char variable_1)
Pointer Type Member(alpha* alphanext)
5. Integer Type Member (int variable)
Object Alpha1Base address AF14BCD99
Char Type Member (char variable_1)
Pointer Type Member(alpha* alphanext)
STUCTURE Alpha
6.
7. Anatomy of a linked list
• A linked list consists of:
– A sequence of nodes
a b c d
Each node contains a value
and a link (pointer or reference) to some other node
The last node contains a null link
myList
9. An exception is thrown by the compiler that it
can not create the infinite memory if we place
a struct type variable in structure.
This variable cannot point to the upcoming
Node of the same Struct type.
10.
11. Integer Type Member (int variable)
STUCTURE Alpha Base address AF14BCD99
Char Type Member (char variable_1)
Struct Type Member(alpha alphanext)
12. Integer Type Member (int variable)
STUCTURE Alpha Base address AF14BCD99
Char Type Member (char variable_1)
Struct Alpha Type Member(alpha alphanext)
And So on …..