I came across printing pointers example on C programming book (C programming for the Absolute Beginner, Second Edition). Unfortunately, the example doesn't work. I typed it correctly and i believe it's the correct code. I just doesn't know it dont work. I tried both C Free and Visual Studio.
Keep saying iPtr is uninitalize ! ThanksCode:#include <stdio.h> main(){ int x = 1; int *Ptr; iPtr = &x; *iPtr = 5; printf("\n*iPtr = %p\n&x = %p\n", iPtr, &x); getchar(); }