What's this?
1 2 3 4
|
struct st
{
unsigned :0; //what's this?
};
|
can you explain what is this?
Thanks!
I think these will help you a bit:
http://www.cplusplus.com/forum/general/14751/ (it'll tell you that unsigned: 0 is sort of not possible)
You might also want to search "bitfields" on google.
But briefly, a bitfield is something used to initialize part of the memory bit of your struct.
Ex.: unsigned char: 5; //the first 5 bit will be reserved for unsigned char
Hope this help
Thanks
Topic archived. No new replies allowed.