Explain the bit fields portable or not?
- No, Bit fields aren't portable.
- As Bit fields can't span machine words and number of bits in a machine word is different on different machines, a particular program using bit fields might not compile on some machines.
- One must avoid using bit fields except when machines can directly address bits in memory and compiler can generate code.