Answer:
The following function definition is from C++ programming language.
//define function with arguments
void divide (int numerator, int denominator, int *quotient, int *remainder)
{
*quotient = (int) (numerator/denominator);
*remainder = numerator % denominator;
}
Step-by-step explanation:
Here, we define a void data type method "divide()" with four arguments in which first two arguments are integer type variables "numerator" and "denominator", next two are pointer type variables "quotient" and "remainder".
After that, we divide the first two integer variables and save result in "*quotient" then, we again use these variables for modulation and save result in "*remainder".