Shared publicly  - 
 
At last found one bit datatypes
How about creating a number array in C with each element using just one bit of memory?There is no doubt that there are no datatypes in C who...
1
Paul Davies C's profile photoPramode C E's profile photoRajeev S's profile photoVijeenrosh PW Vijeen's profile photo
9 comments
 
The same can be done using standard bit operations, without resorting to bit fields! Try it out and you should get much cleaner code (lots of unnecessary repetitions in your code)
 
I was trying to implement it that way,but i found it too complex..So switched to bit fields..but still working on the bit array.. http://c-faq.com/misc/bitsets.html... Also is it possible to use arrays as bitfields?unsigned char a[8]:8; was an error
 
just now noted that they are almost the same :P
Add a comment...