![]() Chapter Contents |
![]() Previous |
![]() Next |
| llmax |
| Portability: | SAS/C extension |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| IMPLEMENTATION | |
| EXAMPLE | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <lclib.h> int llmax(int s, int r);
| DESCRIPTION |
llmax
finds the maximum of two integer values,
s
and
r
.
| RETURN VALUE |
llmax
returns an integer value that represents the maximum of the two arguments.
| IMPLEMENTATION |
max
is a built-in function.
| EXAMPLE |
#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 = llmax(num1, num2);
printf("The larger number is %dn", result);
}
| RELATED FUNCTIONS |
| SEE ALSO |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.