Functions - Programming

Q1:

Which of the following statement is correct about the program given below?
#include<iostream.h>
int AptitudeTest(int x, int y);
int AptitudeTest(int x, int y, int z = 5);
int main()
{
    cout<< AptitudeTest(2, 4) << endl; 
    return 0;
}
int AptitudeTest(int x, int y)
{
    return x * y;
}
int AptitudeTest(int x, int y, int z = 5)
{
    return x * y * z; 
}

A The program will print the output 5.

B The program will print the output 8.

C The program will print the output 40.

D The program will report compile time error.

ANS:A - The program will print the output 5.

No answer description is available. Let's discuss.