Question 5:
(1 mark, file to be edited: Q5.c)
Your program allows users to enter an array of 'n' integers, where 'n' is entered by the user.
The user is asked to continue entering values for two integers 'v' and 'p'. The program then inserts 'v' at index 'p' in the array.
Print the elements of the array to the screen
Below is an example:
n = 4; array = (9, 0, 1, 8); v = 7; p = 2
4
9018
72
OUTPUT:
90718
Press any key to continue
Zoom
+ 100%
Close