Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- typedef unsigned int set;
- set x = (1<<1)|(1<<2)|(1<<3);
- set y = (1<<2)|(1<<4)|(1<<6);
- set z1 = x&y;
- set z2 = x|y;
- x = (1<<8 |x;
- printf("Is z in X?");
- if ((1<<2) & x){
- printf("Yes");
- else
- printf("No");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement