r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

2

u/ExtraFig6 Apr 06 '22

Are you familiar with RAM and memory addresses?

1

u/Nerdz2300 Apr 06 '22

Not really, I mean, the compiler takes care of that for me I thought. On the micro level I know how they work, but not on the macro level between compiler and hardware.

1

u/ExtraFig6 Apr 06 '22

Are you familiar with how this relates to pointers?

1

u/Nerdz2300 Apr 06 '22

Thats the issue I think I have. I know it points to a specific spot, but I dont see how or why thats useful.

1

u/ExtraFig6 Apr 06 '22

Think about linked lists. Each node holds a pointer to the next. What would you do without pointers?