Question: Analyze the following code: #include using namespace std; intxfunction(int n, long t) { cout < < int: return n; } long xfunction(long n) {
Analyze the following code: #include using namespace std; intxfunction(int n, long t) { cout < < "int": return n; } long xfunction(long n) { cout < < "long"; return n; } int main()) { cout < < xfunction(5); return 0; } A. The program displays int followed by 5. B. The program displays long followed by 5. C. The program runs fine but displays nothing. D. The program does not compile because the compiler cannot distinguish which xfunction to invoke.
Step by Step Solution
3.44 Rating (157 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is prov... View full answer
Get step-by-step solutions from verified subject matter experts
