When writing this C struct:
typedef struct node_s* node_t;
struct node_s {
int value;
node_t next;
};
Anytime we define a variable of type node_t
we don't need to add a pointer *
?
For example:
node_t f(node_t node) {
...
}
such that f
receives a node and returns one.