C
Chad
For some strange reason, I thought the following would give me a value
of 168, not 166. My reasoning was that 678 - 255 - 255 = 168.
#include <stdio.h>
int main(void) {
unsigned long a = 678;
unsigned long ff = 255;
unsigned long c = a & ff;
printf("The value is: %u \n", c);
return 0;
}
The value is: 166
$
What am I missing here?
Thanks in advance
Chad
of 168, not 166. My reasoning was that 678 - 255 - 255 = 168.
#include <stdio.h>
int main(void) {
unsigned long a = 678;
unsigned long ff = 255;
unsigned long c = a & ff;
printf("The value is: %u \n", c);
return 0;
}
The value is: 166
$
What am I missing here?
Thanks in advance
Chad