Today,I learnt about bit-field.But when I tried it inside a function i got an error.
Code:Is bit field restricted to structures only???
This is a discussion on Bit field within the C++ Programming forums, part of the General Programming Boards category; Today,I learnt about bit-field.But when I tried it inside a function i got an error. Code: Is bit field restricted ...
Today,I learnt about bit-field.But when I tried it inside a function i got an error.
Code:Is bit field restricted to structures only???
If you mean
unsigned bits : 5;
then yes.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law