/* 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>

void f1(int *a)
{
    printf("%p\n", a);
}

void f2(int a[])
{
    printf("%p\n", &a[0]);
}

int main()
{
    int a[] = { 1, 2, 3 };
    int *p = a;
    f1(a);
    f2(a);
    f1(p);
    f2(p);
    return 0;
}
