For a function to accept a variable number of arguments, it should use the keyword ______.

  • extern
  • static
  • varargs
  • virtual
For a function to accept a variable number of arguments, it should use the keyword "varargs" (short for variable-length argument list). Varargs is used in C and some C++ code to create functions that can accept a variable number of arguments. This is often used in functions like printf(), scanf(), and other cases where the number of arguments can vary.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *