daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3.  
  4. typedef struct knoten{
  5.     int data;
  6.     struct Knoten *next;
  7. }Knoten;
  8.  
  9. void amEnde(Knoten *anf,Knoten *ende) {
  10.     if(anf->next==NULL) {
  11.         anf -> next == ende;
  12.     }
  13.     else {
  14.         amEnde(anf->next,ende);
  15.     }
  16. }
  17.  
  18. int main()
  19. {
  20.     Knoten anf;
  21.     anf.data=1;
  22.     anf.next=NULL;
  23.     Knoten next;
  24.     next.data=5;
  25.     next.next=NULL;
  26.     amEnde(&anf,&next);
  27.     printf("%d",anf.next->data);
  28.        
  29.  
  30.     return 0;
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top