
Hey Developers!
Do you know what is one of the most important things to learn in low-level programming?
It's Pointers.
I remember trying to wrap my head around it with no luck. So, I wrote an article for it. The article goes into the details and clears some common confusion, comment below for the link.
Here Are Some Key Points -
Pointer provides a way to access a variable indirectly.
Pointer allows you to manage your memory.
Use int * to declare a pointer and * to dereference it.
To declare multiple pointers in the same line use * before each one of them
Use & to get the address of a variable.
*Arrays, strings, and other multi-value types do not require '&' to get the address.
*Dereferencing a pointer with no value or a null pointer results in a segmentation fault.
*The memory address can be utilized to permanently alter the value of a variable, so be careful.
Photo by Åaker on Unsplash