Write a program which allocates an integer array of size k, fill in the
array with random integers in the range [1,...,10], reverse the order
of elements in the array and print all results (both intermediate and
final). k will be entered by the user.
Example:
Enter the size of the array: 6
The random array is:
5 6 8 7 4 1
The reversed random array is:
1 4 7 8 6 5
Example
Enter the size of the array: 10
The random array is:
5 5 6 8 7 4 1 6 4 7
The reversed random array is:
7 4 6 1 4 7 8 6 5 5
Note: You can use the rand() function defined in <math.h> to generate
random
integers.