#include int *ptr1; void foo( ) { int x = 5; ptr1 = &x; } int main( ) { int i = 0; foo( ); printf( "The value of x is stored at %x and its value is %d\n", ptr1, *ptr1 ); printf( "The value of x is stored at %x and its value is %d\n", ptr1, *ptr1 ); return 0; }