I got this question asked at in interview.
Supposing I have to check bit 3 for:

```
 a=0x9004;

```

I said that 

```
 if((a<<13>>15)^1==1)
     printf("bit 3 is not set");
 else
     printf("bit 3 is set");

```

But I'm feeling that this is not what they were looking for.