/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

int main()
{
    double x,x2,y;
    int *ix2,*iy;
    x = 1.1;
    x2 = x*x;
    y = 1.21;
    printf("%f\n",x2);
    printf("%f\n",y);
    ix2 = (int*)&x2;
    iy = (int*)&y;
    printf("%08X%08X\n",ix2[0],ix2[1]);
    printf("%08X%08X\n",iy[0],iy[1]);
    return 0;
}
