[ create a new paste ] login | about

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

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

int main()
{
int i, j;
float x = 3.5;

i = *(int*) &x;
j = (int) x;

printf("%d, %d\n", i, j);

return 0;
}


Output:
1
1080033280, 3


Create a new paste based on this one


Comments: