[Solved] Too many arguments to function call, What do I do?

In your function definition float remainingAngle(float answer) the function remainingAngle() accepts one parameter. OTOH, in your function call remainingAngle(angleA,angleB); you’re passing two arguments. The supplied argument number and type should match with the parameter list in function definition. That said, your code is wrong. Point 1. Your local variables will shadow the global ones. Maybe … Read more