Problem2225--C Programming Resit: Recursion2

2225: C Programming Resit: Recursion2

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

Write a recursive function in C language to reverse an integer array with the length of 7. The function should take the integer array and its length as parameters and modify the original array without using any loops. Please call the recursive function in the main() function and print the reversed array. The seven integers of the original array are entered by the user from keyboard.

Input

7 integers of the original array

Output

The reversed array

Sample Input Copy

1 2 3 4 5 6 7

Sample Output Copy

7 6 5 4 3 2 1

Source/Category

268