Input an array and then print the repeating characters??
Example:
Input:1,3,23,11,44,3,23,2,3.
Output:3,23
plz help me.... i want a code of it. In C language.

Answer Posted / amit rawat

#include<iostream.h>
#include<conio.h>
void main()
{clrscr();
int ar[8]={2,3,4,5,2,9,8,7};
for(int i=0;i<8;i++)
{for(int j=i+1;j<8;j++)
{if(ar[i]==ar[j])
{cout<<"\n Repeated no is";cout<<ar[i];
}
}
}
getch();
}

Is This Answer Correct ?    33 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There are 5 red shoes, 4 green shoes. If one draw randomly a shoe what is the probability of getting red shoe

871


Find the next series number 0, 6, 24, 120, 210, ---, ----

712


Plz send me the SBI exam previous question paper.

1831


Find the next letter in the series A,C,F,J,0--

708


In a company 30% are supervisors and 40% employees are male if 60% of supervisors are male. What is the probability that a randomly chosen employee is a male or female?

1296






There is a 4 inch cube painted on all sides. This is cut down into of 1 inch cubes. What is the no of cubes which have no pointed sides.

871


A man said to woman " your only brother's son is my wife'sbrother". How is the woman related to the man's wife..

1019


A, B ans C are three speakers. They have to speak randomly along with another 5 speakers in a function. A has to speak before B and B has to speak before C. What is the probability.

688


(7*7=49)(4*9=36)(3*6=18) (1*8=8)

796


Two Pencils 8 cents 5 Pencils cost ?

726


a solution is prepared by mixing two solution with sprit 20% & 60%…In what ration they should be mixed to get the 50% sprit in resultant solution .

704


A man travelled from the village to the post-office at the rate of 25 kmph and walked back at the rate of 4 kmph. If the whole journey took 5 hours 48 minutes, find the distance of the post-office from the village

642


how can i get previous ssc data entry question papers?... if u have any idea pls give me very kindly.....

1796


i attended sbi clerical interview on28/04/10.on 20/08/10 i called sbi headoffice 022-22024619 they said tht final result will be declared after 2 months.i also had another no 022-22826300.if anybody are interested cal those no's.my mobile no is 9010347790(udamsingh)

1681


Find the hypotaneous of a right angle isoceles triangle whose area is 50.

798