Question: Please help with C++ function, and include a main method with test cases. Thank you. #include using namespace std; int current_size = 4; int resize_step
Please help with C++ function, and include a main method with test cases. Thank you.
#include
using namespace std;
int current_size = 4;
int resize_step = 4;
//This functions add the value x at the last position in the array
//The count of elements is indicated by the variable count
//If the array is already at maximum it resizes
//The array starts at current_size size and resizes in resize_step intervals
void add_number(char* &arr, int count, char x)
{
//Your code starts here
//Your code ends here
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
