In c, I know an unsigned char is of size 1 byte (= 1 octet = 8 bits), and I know that an unsigned char is in fact a integer value between 0 and 255, now that if I have the following unsigned char variable:
unsigned char c = 255; //(this value can be any value from 0 to 255)
How could I get a table of 8 elements indicating every bit value (0 or 1) of this variable? (something like this : {1, 1, 1, 1, 1, 1, 1, 1}) Is there any easy way to do this in c?