#include int main(void) { int n, arr[20]; printf("Enter the size of the array: \n"); scanf("%d", &n); int i; printf("Enter %d elements of the array: \n", n); for(i=1; i<=n; i++){ scanf("%d", &arr[i]); } int loc, item; printf("Enter the location of new element: "); scanf("%d", &loc); printf("Enter the value of new element: "); scanf("%d", &item); for(i=n; i>=loc; i--){ arr[i+1] = arr[i]; } arr[loc] = item; n = n+1; printf("The final array is: \n"); for(i=1; i<=n; i++){ printf("%d\t", arr[i]); } return 0; }