Why use dynamic memory allocation(i.e. malloc()) when implementing linked list in c?
问题 Okay this question may sound stupid to the amateur programmers . But seriously this is bothering me and a solemn answer to this doubt of mine is welcomed. I have just started to take my first ever course in data structures. And what is bothering me is this: Assuming C is used, //Implementing a node struct Node { int data; struct *Node; }; Now while creating a node why do we use the dynamic memory allocation technique where we use malloc(). Can't we just create a variable of type ' Struct Node