Hi,
How can I write a function in Fortran which takes both input and output as arguments? For example:
fun(integer input,integer output)
I want to make use of the output value. I have tried something like this but the output variable is not holding the value.
Specifically, I am calling a C function from Fortran which takes input and output as parameters. I am able to pass input values successfully, but the output variable is not acquiring a value.