Christopher Benson-Manica wrote:
Given that modf is prototyped as
double modf( double x, double *iptr );
is the behavior of the function well-defined if the address of x is
passed as the value of iptr?
Technically, the question is fundamentally flawed because here, x is
a function argument and its address cannot be passed as another argument
of the same call. So this question is plain rubbish.
Now if that was meant to say "if the address of the variable passed
in the function call as the first argument", that's another story.
But anything could be passed as the first argument of this function,
including literals and expressions, so the parameter doesn't necessarily
even have an address (as defined by the operator '&').
Thus, this question doesn't make any sense per se. Ask your teacher to
write a better question, then work on it.