syenidogan
Member level 1
- Joined
- Mar 6, 2014
- Messages
- 41
- Helped
- 2
- Reputation
- 4
- Reaction score
- 3
- Trophy points
- 8
- Activity points
- 297
if ((buffer[1] == 16)&(((unsigned int) buffer[6] + 9)!=counter))
(buffer[1]==16) gives one bit result 1 or 0
(((unsigned int) buffer[6] + 9)!=counter) gives one bit result 1 or 0
then and (&) these two values and see if it is 1 or zero ? is this correct ?
if not ,can some one explain me detailed.
buffer is unsigned char
and counter is unsigned int
(buffer[1]==16) gives one bit result 1 or 0
(((unsigned int) buffer[6] + 9)!=counter) gives one bit result 1 or 0
then and (&) these two values and see if it is 1 or zero ? is this correct ?
if not ,can some one explain me detailed.
buffer is unsigned char
and counter is unsigned int
Last edited: