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


Next: Describe the impact of competition policy on an organisation
Previous: Given the following class, class summation{ int num; long sum; //summation of num public: void set_sum(int n); void show_sum () { cout <

View More
Computer Studies Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions