[ create a new paste ] login | about

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

C, pasted on Mar 15:
1
2
3
4
5
6
7
8
9
#include<stdio.h>

main()
{
float f= 7.0;
short s=*(short*)&f;
//printf("%f",f);
printf("%d",s);
}


Output:
1
0


Create a new paste based on this one


Comments: