Question Detail

Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer
Similar Questions :

1. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

2. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

3. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

4. Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer

5. Enumerator will allocate the memory when its variables are defined.

  • True
  • False
Read more from - C++ Programming Questions Answers - Set 2