Skip to content

Instantly share code, notes, and snippets.

@usualoma
Created March 17, 2010 20:30
Show Gist options
  • Save usualoma/335689 to your computer and use it in GitHub Desktop.
Save usualoma/335689 to your computer and use it in GitHub Desktop.
#include <stdio.h>
enum Values { A = 1, B = 2, C = 4, D = 8 };
void main(void) {
enum Values a = A;
if (a & (A | B | C)) {
printf("hoge\n");
}
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment