Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int func(int m = 10, int n)
4.
{
5.
int c;
6.
c = m + n;
7.
return c;
8.
}
9.
int main()
10.
{
11.
cout
Options:
A .  15
B .  10
C .  compile time error
D .  none of the mentioned
Answer: Option C

We can't use the user argument infront of the default argument.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers