Advertisement
Fede

Untitled

Dec 22nd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. int main(){
  2.  struct list* head_ptr;
  3.  // ...
  4.  if(head_ptr != NULL)  
  5.   visit_r(head_ptr);
  6. }
  7.        
  8. void visit_r(struct list* ptr){
  9.  printf("%f", ptr->value);
  10.  if(ptr->next_ptr != NULL)
  11.   visit_r(ptr->next_ptr);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement