11 void IterateList (struct Node
* HeadList
);
12 struct Node
* makelist(struct Node
** Head
, struct Node
** Tail
);
14 struct Node
* makelist(struct Node
** Head
, struct Node
** Tail
)
16 struct Node
* new = (struct Node
*)malloc(sizeof (struct Node
));
31 void IterateList (struct Node
* HeadList
)
33 struct Node
* current
= HeadList
;
35 while (current
!= NULL
)
37 printf("The float you entered is %f\n",current
->f
);
38 current
= current
->next
;
43 struct Node
* head
= NULL
;
44 struct Node
* tail
= NULL
;
45 struct Node
* curr
= NULL
;
51 curr
= makelist(&head
,&tail
);
52 printf("Enter float :\n");
53 scanf("%f", &(curr
->f
));
56 /* now iterate the list */
This page took 0.311244 seconds and 5 git commands to generate.