Guest User

Untitled

a guest
Apr 22nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. typedef struct list {
  2. item_type item;
  3. struct list *next;
  4. } list, *list_p;
  5.  
  6. void print_list(list_p l)
  7. {
  8. if (l != NULL) {
  9. printf("%d-", l->item);
  10. print_list(l->next);
  11. }
  12. return;
  13. }
  14.  
  15. /bin/bash: line 1: 8837 Segmentation fault: 11 ./a.out
Add Comment
Please, Sign In to add comment