Computer Science, asked by vermapulkit933, 1 month ago

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 vijaybhatti2021fzr
37

Answer:

returns the min of ( a,b)

Answered by mindfulmaisel
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