struct
{
u_short a:1;
u_short k:1;
u_short q:1;
} flags;
here flags is a struct variable .
and the other one you have only defined the struct.
On 12/12/06, Saifi <[EMAIL PROTECTED]> wrote:
>
> Hi:
>
> What is the difference between the struct definitions from a compiler
> perspective ?
>
> struct
> {
> u_short a:1;
> u_short k:1;
> u_short q:1;
> } flags;
>
> and
>
> struct flags
> {
> u_short a:1;
> u_short k:1;
> u_short q:1;
> };
>
> Thanks in advance.
>
> thanks
> Saifi.
>
>

