Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pNode lastInsert(pNode top, int value)
- {
- pNode app;
- if(top != NULL)
- top->next = lastInsert(top->next,value);
- else
- {
- app=(pNode)malloc(sizeof(node));
- app->info = value;
- app->next = NULL;
- return app;
- }
- return top;
- }
- void printList(pNode top)
- {
- pNode app = top;
- while(app != NULL)
- {
- printf("%d -> ", app->info);
- app = app->next;
- }
- puts("NULL\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement