dsdeep

Error Function 1

Sep 21st, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. void maxNumber(node *head){
  2.  
  3.     int max=head->a;
  4.      while(head){
  5.     if((head->n->a)>max){
  6.         max=head->n->a;
  7.         printf("\n%d\n",max);
  8.     }
  9.     head=head->n;
  10. }
  11. printf("\n\t\t%d\n",max);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment