How do you store an int number as binary in c?

How do you store an int number as binary in c?

int bnumber=22?
```

>Solution :

int bNumber =  0b00000000000000000000000000010110; // is equal to 22

The above is 32 bits , (8 bits) in (1 byte), int is (4 bytes) so 4*8 == 32 ,

Leave a Reply