Question: Program the 3 following methods in c++. ALL MUST BE IMPLEMENTED WITH RECURSION, NOT LOOPS int find(int v): returns the location in an array of

Program the 3 following methods in c++. ALL MUST BE IMPLEMENTED WITH RECURSION, NOT LOOPS

int find(int v): returns the location in an array of a value v. If it can't find the value, return -1.

void print() prints a list, printing the index location alongside the value inside of the location

Example: [1] = 255

void clear(): empties a list along with any dynamically allocated memory associated with it.

Thanks in advance!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!