P
prashna
Hi all,
I have seen a piece of code(while doing code review) which declared an
array of size 0.One of my friend told although it is not standard
C,some compilers will support this..I am very curious to know the use
of it..
The code was compiled using Diab C compiler.
Also the array was declared in structure like this
typedef struct someStruct
{
int i;
char array[0];
} someStruct;
Thanks
Regards
I have seen a piece of code(while doing code review) which declared an
array of size 0.One of my friend told although it is not standard
C,some compilers will support this..I am very curious to know the use
of it..
The code was compiled using Diab C compiler.
Also the array was declared in structure like this
typedef struct someStruct
{
int i;
char array[0];
} someStruct;
Thanks
Regards