pointer of pointer(char** ch)
-
HI ALL :) pointer of pointer(char** ch) some times I see this this(char** ch) for example in (strtod) function it's strang kind of pointer can you tell me about this kind of pointer THANK YOU AHMAD ALWASHALI
What more can i say expept that it's a pointer that points to a pointer. 8-) It's used -usually- when you want a function to return a pointer through it's arguments.
void GetPointer(char** ppChar)
In that case you call the function by passing the address of the pointer.
char MyChar='A';
char* pMyChar=&MyChar;
GetPointer(&pChar);- - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234
-
What more can i say expept that it's a pointer that points to a pointer. 8-) It's used -usually- when you want a function to return a pointer through it's arguments.
void GetPointer(char** ppChar)
In that case you call the function by passing the address of the pointer.
char MyChar='A';
char* pMyChar=&MyChar;
GetPointer(&pChar);- - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234