Can someone give me some idea on how to store data in 'bit's.
I am currently working on bit operators and have hit a snag.
For example there a question in my c reference book:
Store rainbow colors in a char variable named color.
When user presses 0 violet appears on screen,press 1 indigo appears on screen and so on..
The easy way is to have a string array and store all the data.
But how to achieve this using/manipulating bit?
Thanks in advance,