>to call 1 function to determine the maximum and minumum

>numbers.

I guess unregistered wanted a function which determins the maximum AND the minimum value and not two seperate functions for determining maximum and minimum.

Code:

int main (void)
{
int a, b, c, min, max;
// give a, b and c a value
minmax (a, b, c, &min, &max);
return 1;
}
void minmax (int a, int b, int c, int *min, int *max)
{
*min = a;
if (b < *min) *min = b;
if (c < *min) *min = c;
*max = a;
if (b > *max)*max = b;
if (c > *max)*max = c;
}