What will be the output if 2618 is passed to the function. Also state what operation the function
is carrying out.
void fun(int n)
{
int a, b = 9 ;
while(n > 0)
{
a = n % 10 ;
n = n / 10 ;
if(a < b)
b = a ;
}
}
Answers
Answered by
0
ANSWER:
The output is 0,1,2,0,
Similar questions