I wish to store some binary values in an array in C. How it can be done and how can i access any bit of a binary number.
Plz let me know if i i am unclear in posting the doubt.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Store your values in a normal array and write a simple function that would pick proper element and state of its bit, something like
or even