+ 1

What do this ":" does

I was looking at some c code..Where i saw this: struct bg_cfg { u8 bg_id:2; u16 charbase:2; u16 screenbase:5; }; So , what actually : in bg_id:2 is for? NOTE: u8 , u16 is unsigned char and unsigned short int respectively.

15th May 2018, 1:52 PM
Phäñtøm Phôëñïx
Phäñtøm Phôëñïx - avatar
1 Resposta
15th May 2018, 2:10 PM
Phäñtøm Phôëñïx
Phäñtøm Phôëñïx - avatar