C++20 sections · 1024 units
Open in CourseQuiz: 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?
- A.The third argument is ignored
- B.The compiler throws an error
- C.The third argument goes into a hidden parameter
- D.The function uses the third argument as a default