/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

int *p;

void f()
{
   int v = 123;
   p = &v;
} 

void f2()
{
   int v = 456;
}

int main()
{
   f();
   printf("%d\n",*p);
   f2();
   printf("%d\n",*p);
   return 0;
}
