Question: Write test case in c++ for this program. void reverse(int a[], int len); then you may write the following code to demonstrate your solution: int
Write test case in c++ for this program.
void reverse(int a[], int len);
then you may write the following code to demonstrate your solution: int main(){
const int len1 = 5; int a1[len1];
// initialize the array using random numbers or array initializationlist show(a1, len1); //print the contents of a1 before the reverse reverse(a1,len1); show(a1, len1); // print the contents of a1 after the reverse
...
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
