to remove the repeated numbers from the given .
i.e..,
if the input is 12233
output should of
123

Answer Posted / qapoo

int main()
{
int a[5]={1,2,2,3,3};
for(int i=0;i<5;i++)
{
if(a[i]<a[i+1])
cout<<a[i];
}
return 0;
}

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does enum stand for?

617


What are the 5 oop principles?

603


What is the purpose of polymorphism?

681


can inline function declare in private part of class?

3658


What is encapsulation oop?

578






What are the 4 pillars of oop?

673


What is a function in oop?

633


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1652


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1459


What is an advantage of polymorphism?

597


How do you answer polymorphism?

577


What is use of overloading?

610


What is the example of polymorphism?

560


What is abstraction with example?

607


Why multiple inheritance is not possible?

602