How can I create this linked list with stack in C? -


i can create linked list. not managed create stack it. (stack cannot more 5, , can empty shown in link). how can it? (c language c++ functions new int allowed)

the structure like:

struct linkedstack {   int elements[5];   int top;   struct linkedstack *next; }; 

then manage stack top (equals 0 @ beginning)...


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -