I am testing some code and I'm trying to understand what a structure does. The code is as follows
typedef struct
{
uint8_t :5;
uint8_t Index:3;
} foo;
I searched for a while and couldn't find an answer. What does the : "operator" do and what's the significance of 5 and 3?