/* 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("%d\n", *a);
   printf("%d\n", a[1]);
}

void f2(int a[])
{
   printf("%d\n", *a);
   printf("%d\n", a[1]);
}

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