max
warning
This function starts with lowercase letter.
Description
Function used to compare the values.
Name | Description |
---|---|
a | Value a to compare. |
b | Value b to compare. |
Returns
Returns the smallest of a and b. If both are equivalent, a is returned.
Examples
//Since b is bigger than a so result will be 5.
public OnGameModeInit()
{
new
a, b, result;
a = 5;
b = 10;
result = max(a,b);
printf ("max(a,b) =", param, result);
return 0;
}