Genuine question: What’s hard about pointers?
ELI5: C pointers: how to use them, and why
They're also very useful to manipulate arrays. In c, if you say int a[], a is a pointer.
So if you do
int a[] = {0,3,2};
printf ("a[1]: %d", *(a+1));
You'll get "a[1]: 3" as the output. Very useful in many cases when trying to optimize for speed.
More on reddit.comA *good* tutorial about pointers in C
What's the best way to understand pointers in C?
Force yourself to only programming with void return type functions for awhile, make all the variables output parameters, try to dynamically allocate memory for every single array and string, even when its not the simplest, or even best approach. Pointers will become so easy after awhile.
More on reddit.comCould anyone recommend a video that provides a clear explanation of pointers in C programming? I've been struggling to understand them, and I'm looking for a resource that breaks down the concept effectively.