
Igor M. answered 01/16/24
TA in a C focused course with 2.5+ years of experience
To implement a first order transfer in C, you can use different methods. Let's use the Euler method for this specific example.
In C, you can use static variables, which retain their value between function invocations. This means the y_prev will always remember the previous y value.