Home / C Programming / Variable Number of Arguments :: True / False Questions

C Programming :: Variable Number of Arguments

  1. The macro va_arg is used to extract an argument from the variable argument list and advance the pointer to the next argument.

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. In a function that receives variable number of arguments the fixed arguments passed to the function can be at the end of argument list.

  4. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. A function that receives variable number of arguments should use va_arg() to extract arguments from the variable argument list.

  6. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. For a function receives variable number of arguments it is necessary that the function should receive at least one fixed argument.

  8. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. A function that receives variable number of arguments should use va_arg() to extract the last argument from the variable argument list.

  10. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. va_list is an array that holds information needed by va_arg and va_end

  12. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The macro va_start is used to initialise a pointer to the beginning of the list of fixed arguments.

  14. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum