Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

New Doc XXXXXXXXXX Scanned by CamScanner Scanned by CamScanner

1 answer below »
New Doc XXXXXXXXXX
Scanned by CamScanne
Scanned by CamScanner
Answered Same Day Sep 02, 2021

Solution

Aditya answered on Sep 04 2021
159 Votes
#include #includeusing namespace std;
void deleteRepeats(char a[],int size)
This statement is used for declaring a a
ay with two arguments of type a
ay and intege
{
for (int i=0;i This loop is used for iterating from first element of the a
ay to the last element
{
for(int j=i+1;j This loop is used for iterating the a
ay but not from the first element but from the element present in the next index or next element from the above loop for ex if above index have have element present at the second index then this loop will start from the elemnt present at the third index
{
if(a[i]==a[j])
This if condition is used to check if two elements of the a
ay are same or not that is...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here