No, really. Superficially, I know C but this is ... a new syntax for C99 probably:
struct node { int payload; int height; struct node *kid[2]; } dummy = {0, 0, {&dummy, &dummy}}, *nnil = &dummy; // internally, nnil is the new nul What does this mean ?:
- Create the type
struct nodenode(the name of the type is still thestruct node) It turns out: declare a (global?)typedef struct node dumydummyvariable containing, among other things, an array of two pointers to itself,=>node* nnil =again a pointer to thisdummy
I'm right? Is this syntax for this? C99? (emoticon "I'm terrified")
struct node, not thenode, i.e. Your first item is correct exactly the opposite. - AnT