Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

What is wrong with the following prototype, which uses a default argument?int f(int count, int max = count);

What is wrong with the following prototype, which uses a default argument?
int f(int count, int max = count);


Answers


Davis
A default argument cannot be another parameter or a local variable.
Githiari answered the question on May 31, 2018 at 17:42

Answer Attachments

Exams With Marking Schemes

Related Questions