Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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
}