r/learnprogramming • • Jan 31 '14

Can someone ELI5 linked lists?

Part of my assignment for my online class involves linked lists and we don't really go over them. I looked around online and I'm slightly confused by all the explainations since I'm fairly new to programming. Can someone dumb it down for me?

77 Upvotes

85 comments sorted by

View all comments

Show parent comment

2

u/door_of_doom Jan 31 '14

Ah, good point! Forgot to consider scope.

2

u/dvlsg Feb 01 '14

Right, but if you're putting together a function that needs the middle node and the first node, it would be silly not to pass a reference to both.