Possible Duplicate:
Flexible array members in C - bad?
I read the following code:
struct hello {
int number;
int data[1];
};
I know the Flexible array members allow we can declare the last element to be an array of unspecified size
like this:
struct hello {
int number;
int data[];
};
In this struct
, the last element does not specify the size, so what is the difference between these two? and what does the first declaration mean?