Print list simply chained backwards in C

Asked

Viewed 236 times

2

I have a list simply chained where each node has a value, they are respectively 1, 2, 3, 4 and 5. I want to print the values of the list only for aesthetic reasons like 5, 4, 3, 2, 1 without creating another list. How can I do that? I’m out of ideas.

  • Simply call the function recursively. Have a look at this function https://pastebin.com/HPcTFAzv.

  • And a tip for you who is new user, ask more detailed questions, put for example how your list type is declared and other important information.

  • Okay, thank you so much Lucas for the example and the tip.

  • show what you’ve done so far, what hasn’t worked, etc

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.