Consider the code fragment written in C below:
void f(int x)
{
if(x<=3)
return;
else
{
f(x/3);
printf("%d", x%3);
}
}
What does f(48) prints?
1
012
2
210
3
000
4
111
Consider the code fragment written in C below:
void f(int x)
{
if(x<=3)
return;
else
{
f(x/3);
printf("%d", x%3);
}
}
What does f(48) prints?