[Tinyos-help] What does the "&" operator stand for?
Muhammad Azhar
leo_az_83 at hotmail.com
Wed Jan 24 00:15:42 PST 2007
Hi,
What does the "&" operator stand for? Eg:
uint16_t x;
//let x = some value
if (x & 0x0001) { /* do something */}
else if (x & 0x0004) {/* do something else */}
I have tried to find this syntax on the Net, but I'm really unable to find
one that explains what it means. In C, I understand that it has to do with
pointers, but the syntax is "&pointer" (no spacing), hence, I'm really
clueless what this does.
I'm trying to obtain sensor readings and linking the output of the value
of the temperature readings to the Leds.
Thanks in advance.
Regards,
Azhar
More information about the Tinyos-help
mailing list