I want to pass an average to a function. When I use in the main printf with %d I get the average but if I use %f I got 0.Why? Tk
Passing average to a function in C
Hello Bennett Thanks your answer is very thorough and useful I will check the code .. Though I did try to use Float average ( float ave) on as you suggested ..but I still get errors ...
actually ..sorry it does work on this compiler ...i must have mistyped when I tried in the other compiler Thanks ! 🙂
thanks this is super useful and much appreciated ☺️