how to do currying in c
in this code i am trying to return a function that can add ctx.a to passed argument x
the intended answer is 4 but when running this code prints 6.
what is going wrong here?
in this code i am trying to return a function that can add ctx.a to passed argument x
the intended answer is 4 but when running this code prints 6.
what is going wrong here?