Question: Suppose you want the average(3,6) function to return an int average of the two int arguments when it is called in one file, and you
Suppose you want the average(3,6) function to return an int average of the two int arguments when it is called in one file, and you want it to return a double average of the two int arguments when it is called in a second file in the same program. How could you set this up?
Step by Step Solution
3.34 Rating (166 Votes )
There are 3 Steps involved in it
void main int a b averageab a b double x x averageab This ... View full answer
Get step-by-step solutions from verified subject matter experts
