#include #include int main() { int a=5; int b=8; int* p; // pointer to int p = &a; // p points to a (or the memory address where a is stored) printf("Before: a=%d, b=%d \n", a, b); *p = b; // make the int pointed to by p (i.e., a) have a value equal to b // This has the same effect as: a=b; printf("After: a=%d, b=%d \n", a, b); system("pause"); }