/* ptrcmp_01.c Pointer assignment and compare  */

int printf(char*, ...);

int main(int argc, char** argv){
  int x;
  int y;
  int *ip = 0;
  x = 1;
  y = 2;
  
  if (ip == 0) {
      ip = &x;
  }
  y = *ip;
  *ip = 0;

  printf("x=%d y=%d\n", x, y);
  return 0;
}
