What is a potential drawback of using bit fields in a cross-platform application?

  • Inefficient memory usage
  • Lack of platform portability
  • Compiler-specific behavior
  • Slower execution
The correct option is c) Compiler-specific behavior. Using bit fields in a cross-platform application can lead to issues due to compiler-specific behavior. Different compilers may interpret bit fields differently, causing inconsistencies across platforms.
Add your answer
Loading...

Leave a comment

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