
#include <lclib.h> int max(int s, int r);
max finds the maximum of two integer values, s and r.
max returns an integer value that represents the maximum of the two
arguments.
max is a built-in function.
#include <lcmath.h>
#include <stdio.h>
main()
{
int num1, num2; /* numbers to be compared */
int result; /* holds the larger of num1 and num2 */
puts("Enter num1 & num2 : ");
scanf("%d %d", &num1, &num2);
result = max(num1, num2);
printf("The larger number is %dn", result);
}
fmax, fmin, min
Copyright (c) 1998 SAS Institute Inc. Cary, NC, USA. All rights reserved.