C examples for math.h:INFINITY
Macro constant
<cmath> <ctgmath> <math.h>
Macro constant that expands to an expression of type float and denote the value of infinity.
#include <stdio.h> #include <math.h> int main()/*from w ww .j a v a 2 s . c om*/ { printf("%f",INFINITY); return 0; }