hi there, i just want to know what data type i need inorder to store a binary word eg. 10010111
haven_u
0
Light Poster
Recommended Answers
Jump to PostDepends on how easy you want to access the bits, and how you get the data.
You could store the data as an unsigned char, and access each bit using masks. That easily handles single bytes.You could store the values 0 and 1 in an array of char …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.