1.

What is the output of this program?
#include 
using namespace std;
void function(int p, bool condition = true)
{
if (condition == true )
{
cout << "Condition is true. P = " << p;
}
else
{
cout << "Condition is false. P = " << p;
}
}
int main()
{
function(250, false);
return 0;
}

A. Condition is true. P = 250
B. 200
C. Condition is false. P = 250
D. True
E. False
Answer» D. True


Discussion

No Comment Found

Related MCQs