I'm supposed to write a possible function prototype for the following line of code and y is a double:
f(&y);
Why would you ever have an "&" right there, and what would the prototype be?
Thanks
I'm supposed to write a possible function prototype for the following line of code and y is a double:
f(&y);
Why would you ever have an "&" right there, and what would the prototype be?
Thanks
Given that '&' is the "address-of" operator:
It should be easy to figure out how to change:Code:double x = 0; double *x = &x;
into what you want.Code:double f (double y);