Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
#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; }
how to combine 2 array and made the size = 16
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started