Puzzle P24


Puzzle P24 — Two Pointers to a Pointer

There is no problem having two pointers point to a single pointer. Here is some code:

#include  <stdio.h> 

void main ( void )
{
  int value;
  int *pv;
  int **ppv;
  int **ppw;

  value = 32;
  ________________________ ;
  ________________________ ;
  ________________________ ; 

  printf("value = %d\n", value );
  printf("**ppv = %d\n", **ppv );
  printf("**ppw = %d\n", **ppw );
}

Edit the program so that it prints out:

value = 32
**ppv = 32
**ppw = 32

See the picture.



Previous Page        Answer         Next Page         Home