Question: #include using namespace std; double* arr = new double[10]; double* read_data(int& size) { int count = 0; float value; if (size >= 10) { double*

#include

using namespace std;

double* arr = new double[10];

double* read_data(int& size) { int count = 0; float value; if (size >= 10) { double* new_array = new double[2 * size]; for (int i = 0; i > value) { arr[count] = value; count++; } size = count; cin.clear(); cin.ignore(); return arr; }

int main() { char repeat; do { int size = 0; read_data(size); cout > repeat; } while (repeat == 'y');

cout

system("Pause"); return 0; }

#include using namespace std; double* arr = new double[10]; double* read_data(int& size)how to combine 2 array and made the size = 16

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!