Home / C Programming / Variable Number of Arguments :: Yes / No Questions

C Programming :: Variable Number of Arguments

  1. Can we pass a variable argument list to a function at run-time?

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. While defining a variable argument list function we drop the ellipsis(...)?

  4. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Is it necessary that in a function which accepts variable argument list there should be at least be one fixed argument?

  6. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Can we write a function that takes a variable argument list and passes the list to another function?

  8. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Can the fixed arguments passed to the function that accepts variable argument list, occur at the end?

  10. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. It is necessary to call the macro va_end if va_start is called in the function.

  12. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The macro va_arg is used to extract an argument from the fixed micro argument list and advance the pointer to the next argument.

  14. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Discuss Discuss in Forum