diff --git a/stack.h b/stack.h index 243e8e8..b379424 100644 --- a/stack.h +++ b/stack.h @@ -11,7 +11,7 @@ The latest element is taken from the stack. */ typedef struct Node{ - int data; + int *data; struct Node *next; } StackNode;