In C, what is the main advantage of using bit fields in a structure?

  • Allowing dynamic memory allocation
  • Enabling the use of multi-threading
  • Reducing the memory footprint
  • Simplifying file I/O
Bit fields in C structures allow you to efficiently use memory by storing data in a compact format. This is useful for optimizing memory usage when dealing with data that has a fixed range of values.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *