So my question pretains to pointers to a pointer. I've been working with passing array data structures and other data structures to my functions. This reminded me of something I read a while back in one of my first C++ tutorials.
Anyways, is it honestly necessary to declare a pointer thats meant to point to another pointer with the double asterisks?
Also is what if, lets say we are passing different variables to a function whose function parameters contains a pointer.
So would this cause problems? Since its a pointer to pointer with the receiving pointer being declared with only 1 asterisks.
Anyways, is it honestly necessary to declare a pointer thats meant to point to another pointer with the double asterisks?
int **pointer
Also is what if, lets say we are passing different variables to a function whose function parameters contains a pointer.
void functionExample(int *ptr){~} int main(){ int a, b; int *c; functionExample(&a); functionExample(&c); //Pointer to Pointer
So would this cause problems? Since its a pointer to pointer with the receiving pointer being declared with only 1 asterisks.