I have something like `int i=10` it could be `i=1000` or `i=10400233`

I like to store each bit from any number stored in `int i=10//,etc.` in an array. Is it possible in `C`

I just don't get it how can we find the relationship between `bits` and `int` variable with a number stored in it

example inputs

> 
> int i=10; // I want int array[]={1,0,1,0};
> 
> 
> 

> 
> int i=15; // I want int array[] ={1,1,1,1};
> 
> 
> 

> 
> int i=21 // I want int array[] ={1,0,1,0,1};
> 
> 
>