On Thu, 15 Jan 2004 17:38:19 -0800, "Darius Fatakia"
<darius_fatakia@yahoo.com> wrote in comp.lang.c:
[color=blue]
> I feel like I might be overlooking something obvious, but...
>
> I want to store an array of bits (0's and 1's) in the cheapest possible way.
> The array might be 1,000 to 10,000 elements long. What variable type/
> structure should I use?
>
> Thanks!
>[/color]
You must have somehow missed this question (and its answer) when you
read the FAQ for this group, as you are supposed to and surely did
before you posted here:
20.8 How can I implement sets or arrays of bits?
There's a link to the FAQ for comp.lang.c, which includes the answer
to this question as well as many, many others, in my signature block.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html