float variable displaying in hexadecimal format using pointers
Iam trying to display the flaot variable in terms of hexadecimal in byte by byte format.
Is this valid what iam doing here?
float fVal = 10.1234;
ptr = &fVal;
for(i = 0;i < 4;i++)
iam trying to find out the float data variable bit pattern , till now not with much success ( i.e how10.1234 will be converted into bits and kept in that 4 bytes).if any body can find link or tutorial that would be really benificial for me.
thanks for all the help friends