The program below has a bug. Which statement correctly describes it?
#include <stdio.h>
typedef struct {
int value;
Node *next;
} Node;
int main(void) {
Node n = {1, NULL};
printf("%d\n", n.value);
return 0;
}
The alias is introduced only after the closing brace. Write typedef struct node { int value; struct node *next; } Node;, or declare typedef struct node Node; before the struct definition.