int main(){
long time;
float seconds=0;
float minutes=0;
float hours=0;
float* phours=&hours;
float* pminutes=&minutes;
float* pseconds=&seconds;
void* pVoid;
float* pMin;
printf("Please enter your time in second(s):");
scanf("%d",&time);
secToHours(time,&hours,&minutes,&seconds);
pVoid=phours;
printf("hours=%f",*phours);//here answer is 0.000(help to solve)
pMin=pminutes;
printf("minutes=%f",*pMin);// but here why 0.000(help to solve)
pVoid=pseconds;
printf("secomds=%f",*(float*)pVoid);//here why answer can be 3
system("pause");
return 0;
}
float secToHours(long time,float* hours,float* minutes,float* seconds)
{
long localTime;