Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Ok, I'm working with using member functions in structures in C, which I've never done before, and I'm stuck. Here's the code:
typedef struct Node
struct Node* next;
typedef struct stack
void push(char info,node_ptr head)
char pop(node_ptr head)
Now my problem is that I don't want to have to reference a node as a variable to push and pop, I want to use the head of the stack as the only node they will modify. How would I go about doing this?
0 · ·