It looks like you're new here. If you want to get involved, click one of these buttons!
I'm new to coding in C so I'm sure this is an essential inquiry. to me, this code should read an input, run the rcall() which does nothing, and output the same value. This works perfectly with int() values, yet when I change to twofold, the result doesn't change from - 6158.
double input, output, rcall(x); int main(void){ scanf("%lf", &input); /*read the input*/ output=rcall( input); /*call the function*/ printf("%lf", output); /*print the output*/ } double rcall(x){ /*this function does nothing*/ return x; }
How really do fix this rationale mistake?
Your Help will be Much Appreciated!