[ create a new paste ] login | about

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

C, pasted on Nov 13:
1
2
3
4
5
6
7
#include <stdio.h>
int main()
{
    int value = ~0;
    int x = (value == ~0 ? ~0ULL : (value / 2.0 + .5));
    printf("x=%x\n", x);
}


Output:
1
2
3
x=7fffffff

Exited: ExitFailure 11


Create a new paste based on this one


Comments: