N
northsolomonsea
Hi,
I apologize if this is trivial, been searching around but can't get
find a good explanation.
I often see statements like
if (val&SOME_ERROR_CODE) { ...
if (SOMECODE_SOMEOTHERCODE) {
etc.
where the macros are integer values, usually "bit" values 8, 16, 32
etc.
Can someone explain to me when they are true and when they are false?
what is the logic behind it? (a pointer to a webpage explaining would
also do fine as well).
thanks very much. R
I apologize if this is trivial, been searching around but can't get
find a good explanation.
I often see statements like
if (val&SOME_ERROR_CODE) { ...
if (SOMECODE_SOMEOTHERCODE) {
etc.
where the macros are integer values, usually "bit" values 8, 16, 32
etc.
Can someone explain to me when they are true and when they are false?
what is the logic behind it? (a pointer to a webpage explaining would
also do fine as well).
thanks very much. R