Author: Unknown
Subject: None
Date: Tuesday, 17 Mar 2020, 02:35:42
In the walkthrough, we are given:
typedef struct node {
struct node *next;
int value;
} Node;
struct stack {
Node *head;
};
typedef struct stack *Stack;
What is the difference between node and Node? Isn't node the generic type and Node is a specific instance of node? Why can't we do:
typedef struct node {
struct node *next;
int value;
};
struct stack {
node *head;
};
typedef struct stack *Stack;
PREV
INDEX
NEXT