C++20 sections · 1024 units
Open in Course

Quiz: Function Parameters

Test your understanding

Check Your Understanding

You call calculate(10, 5, 2) but the function is int calculate(int a, int b). What happens?

  1. A.The third argument is ignored
  2. B.The compiler throws an error
  3. C.The third argument goes into a hidden parameter
  4. D.The function uses the third argument as a default
Start the roadmap to answer the quizzes and solve the challenges