// -----------------------------------------------
mySquare( y1) // rcv'ing dbl = 4
{
double x1=1 ;// valid, but impossible to reach.
printf("\n SQRD incoming Y1: %d",y1); // shows 4
printf("\n SQRD return y1*y1: %d",y1*y1); //shows 16
x1 = (y1*y1); // ???
printf("\n SQRD return X1: %d",x1); //shows 0 !
return x1; // rtns zero, not 16 !
}
// -------------------------------------------------
Maybe I'm just tired, but I just don't see why x1 isn't 16 .
Hope no-one flames me too badly for the lack of correct tags
TNX
Shift-Stop