What does the following function do?
function operation (int a, int b)
{
if (arb)
{return operation(b, a)}
else
{return a;)
}
ANS:
Returns the min of (a,b)
Answers
Answered by
37
Answer:
returns the min of ( a,b)
Answered by
14
Returns the min of (a,b)
Given:
function operation (int a, int b)
{
if (arb)
{return operation(b, a)}
else
{return a;)
}
To find:
What does the following function do?
Explanation:
function operation (int a, int b)
{
if (arb)
{return operation(b, a)}
else
{return a;)
}
- the above function Returns the min of (a,b)
hence, the following function Returns the min of (a,b)
Similar questions