The compiler gives the following error with the code below, at the location of the added comment:
error: unknown type name 'node'
#include <stdio.h>
typedef struct node
{
int info;
node *sig; //<-- error: unknown type name 'node'
} nodeL;
int main(void) {
nodeL n;
printf("%x\n", n.info);
return 0;
}
How can I solve it?