Get premium membership and access questions with answers, video lessons as well as revision papers.

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


Learn High School English on YouTube

Related Questions