[ create a new paste ] login | about

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

C, pasted on Jan 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
int main(int argc, char* argv[])
{
    double x = 10000000;
    double y = 1;

    x = x + y;
    y = x - y;
    x = x - y;

    printf("x=%d, y=%d\n", x, y);
    return 0;
}


Output:
1
x=0, y=1072693248


Create a new paste based on this one


Comments: