I have a set of variables and I'm doing this:
int a = 1, b = 2, c = 4, d = 8 /* etc. */;
int result = a | c | d;
The point is so I can do something like:
if(result & a) {
// stuff
}
I know this is common, I just don't know the word for it. Is there a word for this? Is there a word for the result variable?