Consider the following function. How would the output that isgenerated with the call test_a(4) be
different if the System.out.println statement were listed after therecursive call in this function?
void test_a(int n)
{
System.out.println(n + ” “);
if (n>0)
test_a(n-2);
}
a) The integers would print in ascending order instead of indescending order.
b)The integers would print in descending order instead of inascending order.c)There would be no difference in the output of thisfunction.d)
The recursive call would never execute because the base casewould be true immediately.
a, b, c or d?
Expert Answer
An answer will be send to you shortly. . . . .