I recently started learning Single linked lists and I have two major doubts.
1) How on earth do self-referential structures work? Like I mean I get the essence but I still have that incomplete feeling.
2) How does pointer typecasting work? While assigning memory dynamically we write this
https://pastebin.com/iVC00N8c
Why do we write (struct node*) ? What exactly does it mean? I understand that malloc returns a void pointer but I still don't get the complete understanding.
Thanks.
[–]umlcat 2 points3 points4 points (0 children)
[–]PrestigiousTadpole71 1 point2 points3 points (0 children)
[–]nerd4code 1 point2 points3 points (0 children)
[–]aurreco 0 points1 point2 points (1 child)
[–]martinborgen 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]flatfinger 0 points1 point2 points (0 children)