Function in C - Quiz

  • AA function that calls another function
  • BA function that returns a pointer to another function
  • CA function that calls itself
  • DA function that takes no arguments
  • A A recursive function cannot call itself.
  • BA recursive function must have a base case to terminate the recursion.
  • CA recursive function must have a return type of void.
  • DA recursive function cannot be called from another function.
  • AFunction arguments are always passed by value.
  • BFunction arguments are always passed by reference.
  • CFunction arguments can be passed by value or by reference.
  • DFunction arguments can be passed by value, bot not by reference
  • ATo define the implementation of a function.
  • BTo declare the return type of a function.
  • CTo declare the function name and its parameter types.
  • D To declare the function name and its return type.
  • ACall by value passes the address of the argument to the function, while call by reference passes a copy of the argument value.
  • BCall by value passes a copy of the argument value to the function, while call by reference passes a reference to the argument variable.
  • CCall by value and call by reference are the same thing.
  • DCall by value passes a reference to the argument variable, while call by reference passes a copy of the argument value.
  • Avoid
  • Bint
  • Cchar
  • DBoth A and B and C
  • A A function that takes no arguments
  • BA declaration of a function that specifies the function's name, return type, and parameter types
  • CA function that returns a pointer to another function
  • DA function that has a variable number of arguments