Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct entry {
- int value;
- struct entry *next;
- };
- static void out(struct entry *e) {
- if (e->next != NULL) out(e->next);
- printf("%d\n", e->value);
- }
- int main(void) {
- struct entry a = {1, NULL}, b = {2, &a}, c = {3, &b}, *head = &c;
- out(head);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement