C/math.h/fmax

Материал из C\C++ эксперт
Перейти к: навигация, поиск

fmax: returns the greater of a and b

<source lang="cpp">

//Declaration: float fmaxf(float a, float b);

              double fmax(double a, double b); 
              long double fmaxl(long double a, long double b);  

   
 
 #include <math.h>
 #include <stdio.h>
 int main(void)
 {
    printf("%l", fmaxl (10,12));

 }


      </source>