Constant variables are vitally important to C++ coding, but you can run into problems depending on when the value of the constant is determined. These techniques and code samples will enable you to ...
I have a C union of a struct containing bit-fields and an unsigned word which contains various flags and multi-bit variables within it (status register). I use the bit-fields as a quick way to access ...