/* CSE 333 Su12 Lecture 3 demo: deref.c */
/* Gribble/Perkins */

/* & * review */

#include <stdio.h>

int main(int argc, char **argv) {
  int x = 42;   
  int *p;       // p is a pointer to an integer
  p = &x;       // p now stores the address of x

  printf("x  is %d\n", x);
  *p = 99;
  printf("x  is %d\n", x);
  
  return 0;
}