Debian – Why does conversion from int to float not take place when we pass 'int' to a function expecting float in C?
I wrote a simple program below which calculates the sum and return the result to main(). The main() then calculates the average. SumOfArray() expects float but I am passing an array of integers. I expected that the integers would be…