[ create a new paste ] login | about

Link: http://codepad.org/ebn79KuY    [ raw code | output | fork ]

C, pasted on Mar 31:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <math.h>

int main ()
{
   printf("%f\n%f\n%f\n", 
      1.0/0.0,
      pow (1.0, 1.0/0.0),
      fmod(5.5, 1.0/0.0)
   );

   return(0);
}


Output:
1
2
3
inf
1.000000
5.500000


Create a new paste based on this one


Comments: