Comment on I heard you like pointers, so I put pointer to pointer in your pointers

robotica@lemmy.world ⁨21⁩ ⁨hours⁩ ago

In C, if you want to let a function change a variable (let’s call it x), you need to pass it a pointer to x.

If x is a pointer to a pointer (**), in order to let a function edit x, you need to pass it to a pointer to x (in that case, a pointer to a pointer to a pointer ***).

source
Sort:hotnewtop