#include #include // Same as before but uses float instead of int int main() { float a=5.3; float b=8.2; float* p; // pointer to int float* q; // pointer to int // initialize the pointers p = &a; // p points to a (or the memory address where a is stored) q = &b; // q points to b (or the memory address where b is stored) printf("Before: a=%g, b=%g \n", a, b); printf("Before: *p=%g, *q=%g \n", *p, *q); p = q; // make p point to the same memory location as q // this is equivalent to p = &b; printf("After: a=%g, b=%g \n", a, b); printf("After: *p=%g, *q=%g \n", *p, *q); system("pause"); }