what will be the output of the following code:
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i=10;
void *ptr=&i;
printf("%f",*(float *)ptr);
return 0;
}
I was expecting the output to be 10.000000 but the output given by the compiler is 0.000000.why?