What does the following function do?
int fun(unsigned int n)
{
if (n == 0 || n == 1)
return n;
if (n%3 != 0)
return 0;
return fun(n/3);
}
- Returns 1 when n is multiple of 3, otherwise returns 0
- Returns 1 when n is the power of 3, otherwise returns 0
- Returns 0 when n is multiple of 3, otherwise returns 1
- Returns 0 when n is the power of 3, otherwise returns 1