Answer Posted / balaji ganesh
#include<stdio.h>
void main()
{
int a[100],n,i,j;
clrscr();
scanf("%d",&n,printf("enter size of array:"));
for(i=0;i<n;i++)
scanf("%d",&a[i]);
for(i=0;i<n-1;i++)
for(j=i+1;j<n;j++)
if(a[i]==a[j])
{
printf("second occurence value: %d",a[i]);
break;
}
getch();
}
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Difference between views and index in sas programming
What is the Difference between in memory database and physical database
Where do we need Operator overloading?
kindly send interview materials
Given: coordinates of rectangle-> left bottom and right top points. the rectangles create a hole.Find the maximum area of the hole. eg. 4 rectangles create a hole in between. find its area.
HOW TO FIND NUMBER OF TWOS IN N!(N FACTORIAL)??
what is the current salary package in India for a lamp programmer
If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this
hi i am jyoti i have done sap training in sd and master degree in economics have 2 year exp as enduser in (gdms)and 1 year as sd consultant.as contract basis now what i can do for getting job in it industry
how to convert infix expression to prefix expression?
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...
Write a program to show polymorphism.
Tag for turning an image into a hyperlink is