Usually, a struct-declarator is just a declarator for a member of a structure or union. A structure member may also consist of a specified number of bits. Such a member is also called a bit-field; its length is set off from the declarator for the field name by a colon.

struct-declarator:
    declarator       declarator : constant-expression 


struct {
    int a : 1;
}

– The C Programming Language
1 year ago
C, Programming,
blog comments powered by Disqus