twodot ":" in Struct for what

Write your question here.

1
2
3
struct{
 unsigned int shakeToEdit : 1;
        unsigned int isClassic : 1;}

I dont knnow ":" for what? Some one please answer^^
The colon indicates a bit field. The number to the right of the colon is the number of bit positions the field occupies.
Thanks so much ^^!
Topic archived. No new replies allowed.