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 function prototype? char *f(char *p, int x =0, char *q);

What is wrong with the following function prototype?

char *f(char *p, int x =0, char *q);

Answers


Davis
All parameters with default arguments must appear to the right of those that do not. That is, once you begin giving parameters default, all subsequent parameters must also have defaults. In the question, q is not given a default
Githiari answered the question on May 31, 2018 at 18:10

Answer Attachments

Exams With Marking Schemes

Related Questions