0
Function
hello, is it possible to function a - function b? like : int functiona(int d, int e) { return (d+e); } int functionb(int f, int functiona) { return (f-functiona); }
4 odpowiedzi
+ 3
Hmmm, maybe something like this?
https://code.sololearn.com/cMmGqZtRsP3Q/?ref=app
+ 2
Do you mean f - functiona(d, e)? If so, then you could. But I don't see much point passing a function as an argument to functionb (considering you could just call functiona in functionb anyway.
That being said, the above code would be an error considering you didn't specify the parameters of the functiona call in functionb, unless you specify default perimeters for functiona.
Hope this helped! 😉
+ 1
so what can i do for my code?
0
thankyou blackcat1111 you really helped me