User Tools

Site Tools


c_-_c_pointers:pointer_to_pointer

C - C++ Pointers - Pointer to Pointer

#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; 
}
c_-_c_pointers/pointer_to_pointer.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki