How should you use pointer to pointer ? I have a hard time distinguishing what is memory address and value in memory when I try to use pointer to pointer, this seems mysterious to me. Could someone give me an explanation and an example of using pointer to pointer ?
My attempt to implement pointer to pointer :
#include <stdio.h>
int main(void)
{
//Este código gera um erro. E não exibe o valor da variável "ponteiroDoPonteiro".
int *ponteiro, **ponteiroDoPonteiro, valor;
valor = 50;
ponteiro = &valor;
*ponteiroDoPonteiro = &ponteiro;
printf("\n%d", **ponteiroDoPonteiro);
return 0;
}