By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,965 Members | 2,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,965 IT Pros & Developers. It's quick & easy.

To store each integer as 1 bit

P: 2
Can anyone please clarify my doubt.
int i = 100000010101010110101
Int cannot hold this much values coz its size is only 4bytes.
So i want to define an user defined function which takes the digit and allocates only one bit of memory to it so that int type can hold 32 digits.I have used bit flag for this but iam not sure about its accuracy.
Can anyone suggest me the way to handle it.
Thanx in advance.
Sep 15 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.