Hi,

In the first case:
Compiler creates instance of the structure flags.
Memory will be allocated when binary loads.
   
In second case 
It is just a template of structure type(tag) flags.
Memory will not be allocated when binary loads.
   
Regards
SRT.


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.

Reply via email to