코드해석 및 필요한 코드 알려주세요.
By은지
2023.04.01
stack data 구현하는 코드라는데 잘 모르겠어요.. 약간의 해석이랑 필요한 코드좀 가르쳐주시면 감사하겠습니다. typedef struct _stack_node{struct _stack_node *next; int value;} stack_node;stack_node *create_new_stack_node(int new_value){stack_node *new_stack_node; new_stack_node= (1)__________________________________; new_stack_node-next = NULL; new_stack_node- = new_value; return new_stack node;}void stack_push(stack_node **top, stack_node *new_node){(2)_______________________________; *top = new_node;}stack_node *stack_pop(stack_node **top){ stack_node *poped_disk = NULL; if (*top != NULL) { poped_disk = *top; (3)_________________________________; } (4)__________________________;}