Empty struct in C ?
Is the empty struct legal under C99?struct S {};int main(void){struct S s;...}
[134 byte] By [
langusera] at [2007-11-27 2:03:54]

# 1
You can not declare empty struct with C99 (as per grammar in 6.7.2.1Structure and union specifiers).It is an allowed syntax in C++, and starting with SunStudio12 we support this extension in Sun C compiler.regards,__Fedor.
SFVa at 2007-7-12 1:46:51 >
