Pointer and pointer's pointer : Pointer Pointer « Pointer « C / ANSI-C






Pointer and pointer's pointer

#include <stdio.h>

int main(void)
{
  int x, *p, **q;

  x = 10;
  p = &x;
  q = &p;

  printf("%d", **q); /* print the value of x */

  return 0;
}

  

           
       








Related examples in the same category

1.Pointer's pointer: value