Listing 5: Four combinations of assignments between pointers to (normal or variable length)arrays

void ex5(int n)
{
    int a[10];
    int vla[n];
    int (*pa)[10];
    int (*pvla)[n];

    pa = &a;
    pa = &vla;
    pvla = &a;
    pvla = &vla;
}
— End of Listing —