-
-
Save ibeauregard/93a74145ddbb9977e01366de16ca509c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* main.c */ | |
printf("At the top of the stack is `%d`\n\n", stack->top->value); | |
// Output from the compiler: | |
main.c:11:61: error: incomplete definition of type 'struct int_node' | |
printf("At the top of the stack is `%d`\n\n", stack->top->value); | |
~~~~~~~~~~^ | |
./int_stack.h:6:16: note: forward declaration of 'struct int_node' | |
typedef struct int_node IntNode; | |
^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment