how to find the largest of given numbers in an array
Answer Posted / anmol.s.fattepur
void ANMOL()
{
int a[10],i,max,m;
pf("enter the range of array");
sf("%d",&m);
pf("enter the values:");
for(i=0;i<m;i++)
{sf("%d",&a[i]);
}
max=a[0];
for(i=1;i<m;i++)
{if(a[i]>max)
{max=a[i];
}}
pf("the max no:%d",max);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is this pointer in oop?
What does <> mean pseudocode?
What is polymorphism in oop example?
Who invented oop?
write knight tour problem which is present in datastructure
What is the difference between a constructor and a destructor?
Why interface is used?
What do you mean by abstraction?
Can you explain polymorphism?
what are the different types of qualifier in java?
What is oops concept with example?
What is inheritance write a program to show use of inheritance?
What are classes oop?
What is debug class?what is trace class? What differences are between them? With examples.
What is the difference between inheritance and polymorphism?