Write the heading for a void function called max that hasthree int parameters nu
ID: 3612683 • Letter: W
Question
Write the heading for a void function called max that hasthree int parameters num1, num2 and greatest The first twho parameters reciece datat from the caller, andgreatest returns a value. Document the data flow of the pareameterswith appropriate comments. Write the heading for a void function called max that hasthree int parameters num1, num2 and greatest The first twho parameters reciece datat from the caller, andgreatest returns a value. Document the data flow of the pareameterswith appropriate comments.Explanation / Answer
Write the heading for a void function called max that hasthree int parameters num1, num2 and greatest The first twho parameters reciece datat from the caller, andgreatest returns a value. Document the data flow of the pareameterswith appropriate comments.void max(int num1, int num2, int &greatest)
sorry I don't understant what you mean by document the dataflow
here's the function
void max(int num1,int num2,int & greatest)
{if(num1>num2)
greatest=num1;
else
greatest=num2;
return; //optional
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.