Is it legal to keep the size of an array 0. gcc 3.4.2 did not give any
error for the declaration
int a[0];
If the declaration is legal, then what will be the implications of
saying
a[0] = 10;
Will it lead to memory corruption??
Thanx,
pranav
error for the declaration
int a[0];
If the declaration is legal, then what will be the implications of
saying
a[0] = 10;
Will it lead to memory corruption??
Thanx,
pranav
Comment