explain the bit fields portable or not- no


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.

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: explain the bit fields portable or not- no
Reference No:- TGS0355024

Expected delivery within 24 Hours