Question: #include using namespace std; void remove_duplicate(int a[], int size) { cout > value) { if (cin.fail()) { break; } array[size] = value; size++; } cin.clear();
#include
using namespace std;
void remove_duplicate(int a[], int size) { cout > value) { if (cin.fail()) { break; } array[size] = value; size++; } cin.clear(); cin.ignore(); cout > repeat; } while (repeat == 'y'); cout
![#include using namespace std; void remove_duplicate(int a[], int size) { cout >](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f0e7efaa63e_04766f0e7ef5de73.jpg)
How to remove old array from the loop?
Please enter your array (Q/q to stop) =149169411q Your array is ={14916974911}. Your array size is =9 Your array after remove duplicate ={14916711}. Your new size =6 Do you want continue (y) : y Please enter your array (Q/q to stop) =231231231q Your array size is =18 Your array after remove duplicate ={1491671123}. Your new size =8 Do you want continue (y):n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
