How can I calculate the value of the arithmetic expression ^2 + 3i − 1 that is dependent on the index i by using pass-by-name mechanism in C language
9
∑ i^2 + 3i − 1
=0
through a call to a sum procedure with argument(s) passed by name
Pass by name examples written in C could also help me
I have done such a solution as following it works but I am not sure whether it works with pass-by-name or not, Could you comment my solution?