/* p17.c */ /* Example of a common error: failure to intialize */ /* a pointer before using it */ main() { int a[200]; // force ptr to live down in uninit land int *ptr; printf("val of ptr is %p \n", ptr); *ptr = 99; printf("val of *ptr = %d and ptr is %p \n", *ptr, ptr); }