Question: Problem1c.pp: Problem1.h Write a function to reverse an array of integers starting from a given start index and a given end index. Note, the end

Problem1c.pp:

Problem1.h

Write a function to reverse an array of integers starting from a given start index and a given end index. Note, the end index is inclusive. Please add your code to problem1.h and problem1.cpp, as provided. Function prototype void reverseArray (int[],int,int); int] a-11,2,3); reverseArray(a, e, 2); //The content of a should be (3,2,1) int] a-1,2,3); reverseArray(a, 0, 1); //The content of a should be 2,1,3. 1 #include "problemi . h" 2 3 void reverseArray(int arr[], int start, int end){ 4 5 //write your code here 1 #ifndet LAB3 PROBLEMI 2 #define LAB3 PROBLEMI 3 void reverseArray(int[], int, int); 4 #endif
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
