Variable Length Array하고는 조금 다른 예인것 같습니다만,
gcc 의 extension 중에
array 크기를 0으로 주는 경우가 있습니다.
[code:1]#include <stdio.h>
int test1()
{
int a[0];
int b;
b = 2;
printf("%d %x %x %d\n", sizeof a, &a, &b, a[0] );
return 0;
}
int test2()
{
struct X
{
int a[0];
int b;
} x;
x.b = 2;
printf("%d %x %x %d\n", sizeof x, &x.a, &x.b, x.a[0] );