struct book
{
int n;
int m;
}ibook;
int main(int argc, char *argv[])
{
float f = 0.123;
(float)ibook.n = f;
printf("f = %f\n", *(float*)(&ibook.n));
return 0;
}
struct book
{
int n;
int m;
}ibook;
int main(int argc, char *argv[])
{
float f = 0.123;
ibook.n = (int)&f;
printf("f = %f\n", *(float*)(ibook.n));
return 0;
}