#include #include #include #define RIGHTMOST_TWO 0x3 /** * example00 - A first example of the problems of not knowing order * of operations. */ int main (int argc, char *argv[]) { if (argc != 2) { printf ("Usage: example00 #\n"); return EX_USAGE; } int x = atoi (argv[1]); if ((RIGHTMOST_TWO & x) == RIGHTMOST_TWO) printf ("The rightmost two bits are set in %d.\n", x); else printf ("The rightmost two bits are NOT set in %d.\n", x); return EX_OK; } // main