Away from a compiler right now but I was thinking about the following code. The overall result will be to print the bit reprsentation of input.
Thx
[code]
struct n_bits {
unsigned int a:1;
unsigned int b:1;
unsigned int ...
unsigned int p:1;
}nbits;
nbits = getchar();