Answer
The output of first program will be -
5 4 3 2 1
The output of the second program will be -
1 2 3 4 5
Work Step by Step
In the first program the value is printed first then the recursive call is made on the smaller number hence the value is printed in decreasing order, but in second program the value is printed after recursive call is made so the smaller number are printed first and then the larger numbers are printed.