C-Structure & Union Question and Answer

C-Structure & Union Question and Answer
91. A bit field is
  • A pointer variable in a structure
  • One bit or a set of adjacent bits within a word.
  • A pointer variable in a union.
  • None of these
Show Answer
92. The restriction with union is:

  • The last member can only be initialized
  • the first member can only be initialized.
  • Any member can be initialized.
  • Union can't be initialized.
Show Answer
93. Which of the following statement is correct ?
  • Union can be member of structure.
  • Structure can be members of union.
  • Both a and B
  • None of these
Show Answer
94. Union differs from structure in which way
  • All members are used at a time.
  • Only one member can be used at a time.
  • Union initialized all members as structure.
  • None of these
Show Answer
95. A bit field can be of
  • int
  • float
  • double
  • All of these
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test