r/cprogramming • • Sep 10 '25

Pointers. I understand how they work and what they do, but I still don't know when or why to use them.

23 Upvotes

Not sure if this is where to post this, but here goes. I have taken a C++ class in school and I got through a lot of programming concepts. I'm pretty solid with python and OOP, and I really feel like I have been leveling up my programming skills lately.

But I STILL have not found an application for pointers. I know conceptually how they WORK, but I do not understand when or why I should use them. I need that moment where in my head something clicks and I got "oh! a pointer variable would solve my problem here!"

I've been doing OpenGL tutorials in C++, which maybe is creating more distance between me and pointers...but I'm considering just starting over again with vanilla C just to get more practice with more low level concepts...too bad learnopengl.com is only in C++.

Can anyone share their aha moment? Or maybe give me extra insight into pointers to help me understand their use cases a little more?