A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: controllers/home.php

Line Number: 222

A PHP Error was encountered

Severity: Warning

Message: A non-numeric value encountered

Filename: controllers/home.php

Line Number: 228

Structures, Unions, Enums - C Programming Questions and Answers
Home / C Programming / Structures, Unions, Enums :: True / False Questions

C Programming :: Structures, Unions, Enums

  1. A union cannot be nested in a structure

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Nested unions are allowed

  4. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Bit fields CANNOT be used in union.

  6. A.

    True

    B.

    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. one of elements of a structure can be a pointer to the same structure.

  8. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. A structure can be nested inside another structure.

  10. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following statement is True?

  12. A.
    User has to explicitly define the numeric value of enumerations
    B.
    User has a control over the size of enumeration variables.
    C.
    Enumeration can have an effect local to the block, if desired
    D.
    Enumerations have a global effect throughout the file.

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The '.' operator can be used access structure elements using a structure variable.

  14. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Union elements can be of different sizes.

  16. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. A structure can contain similar or dissimilar elements

  18. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The '->' operator can be used to access structures elements using a pointer to a structure variable only

  20. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum