Question Detail

Difference between structure and union is

  • We can define functions within structures but not within a union
  • We can define functions within union but not within a structure
  • The way memory is allocated
  • There is no difference
Similar Questions :

1. Which operator in c can't be overloaded

  • %
  • +
  • ::
  • -

2. calloc() belongs to which library

  • stdlib.h
  • malloc.h
  • calloc.h
  • None of above

3. Structures can be used

  • to hold different datatypes
  • have pointers to structures
  • to assign to one another
  • all of above

4. A member is a

  • Variable in a structure
  • Datatype of structure
  • Structure pointer
  • None of above

5. UML meaning is

  • Unique modeling language
  • Unified modeling language
  • Unified modern language
  • Unified master laqnguage
Read more from - C Programming Questions Answers - Chapter 1