i rlly dunt understand how to turn bit off but as book says to turn bit on you do
#define MARRIED (1<<3) //whish is = 8
and status =status | married; <<how the hell it turn bit on
lets say status == 5
and 8(00001000)
5(00000101)
you do or it will just change
to this (00001101);
how it suppose to turn it on ??
i understand that turn off bit
status |=~MARRIED; i understand that
and if(Status & married);
can please also someone show the uses of flags coz this chapter is rlly anoying thanks alot guys