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
which worker is involved in all the phases of SDLC?
in IBM PC -AT.WAT AT REFERS TO?
When we use Windows authentication mode
What is WEB 3.0? What are the features their in WEB3.0
what are the 3 forms of a prolog term
1. Write a program to create a sentence at runtime and count number of vowels in it ? 2. Write a program to get a string and to convert the 1st letter of it to uppercase ?
5. Which of the following can you do with DB2 Express- C? Query databases with SQL Query databases with XML using XQuery and XPath Use SQL in Xquery and Xquery in SQL All of the above
Which design patterns have you used?
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
Write a program to show polymorphism.
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.
along with oracle which language will be beneficial to have knowledge with,java,.net,since i m doing oracle have appeared for 8th sem BEIT,plz suggest
Find out the list of roles which gives access to GUI activities? thanks in advance
How to change the color of a cell or a row in a datagrid on mouse hover using javascript/.net
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?