PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs223] None
Date: Tuesday, 17 Mar 2020, 08:09:24


    > Message Posted By: Unknown
    >
    > 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? ...

"node" is the name of a struct, while "Node" is the name
of a type that specifies a pointer to a struct node.

--Stan-
PREV INDEX NEXT