Pointer to a pointer : pointer to pointer « Pointer « C++ Tutorial






#include <iostream> 
using namespace std; 
 
int main() 
{ 
  int x, *p, **q; 
 
  x = 10; 
 
  p = &x; 
 
  q = &p; 
 
  cout << **q; // prints the value of x 
 
  return 0; 
}
10








11.2.pointer to pointer
11.2.1.Pointer to a pointer