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???
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