Question: 26 Write a function Insert() which inserts an element val to an array arr[] containing n elements at a given position pos. The function should

26 Write a function Insert() which inserts an element val to an array arr[] containing n elements at a given position pos. The function should return the new size of the array. Following is the function declaration and the arguments that the function takes. int Insert(int arr[], int n, int pos, int val); Note: Write the function only. You don't have to write a complete program. Assume that the array has still empty elements
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
