C Programming-Structure and Union
C Programming-Structure and Union
11. The changes made in the members of a structure are available in the calling function if
- pointer to structure is passed as argument
- structure variable is passed
- the members other than pointer type are passed as arguments
- both options a and c
12. Identify the wrong statement.
- Structure variable can be passed as argument
- Pointer to structure can be passed as argument
- Member variable of a structure can be passed as argument
- None of the above
13. Union is
- A special type of structure
- a pointer data type
- a function data type
- not a data type
14. 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 cannot be initialized
15. Union differs from structure in the following way
- All members are used at a time
- Only one member can be used at a time
- Union cannot have more members
- Union initializes ass members as structure
16. Identify the correct statement
- Unions can be members of structures.
- Structures can be members of unions.
- Both options a and b
- Union can contain bit field
17. What is not possible with union ?
- Array of union
- Pointer to union
- Self-referential union
- None of the above
19. The nodes in a linked list are implemented using
- self-referential structure
- nested structure
- array of structure
- ordinary structure
20. Identify the wrong statement.
- An array is a collection of data items of same data type.
- An arrry declaration reserves memory space and structure declaration does no reserve memory space.
- Array uses the key word array in its doclaration.
- A structure is a collection of data items of different data types