Fmax Function
It is used to determine the greater of the two numbers .
Syntax:
float fmaxf(float a, float b); double fmax(double a, double b); long double fmaxl(long double a, long double b);
Example:
#include <math.h> #include <stdio.h> int main() { printf("%f", fmax (10.5,10.3)); printf("%f", fmax (10,12)); return 0; }Back