Question: Analyze the following program and answer the following questions: #include using namespace std; int xfunction(int n,long t) {cout <
Analyze the following program and answer the following questions:
#include
using namespace std;
int xfunction ( int n, long t)
{ cout << “int” ;
return n;
}
long xfunction ( long n)
{ cout << “long” ;
Return n;
}
int main()
{ cout << xfunction (10) ;
}
a. How many functions are there in this program? What are they?
b. What is meant by “function overloading”?
c. What is the difference between “function signature” and “function call”?
d. Will the program output anything? If yes, what is it?
Step by Step Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Lets analyze the provided C program and answer the questions include using namespace std int xfuncti... View full answer
Get step-by-step solutions from verified subject matter experts
