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 the oops and benefits of oops programming?
write a program to find 2^n+1 ?
What is polymorphism explain its types?
Can main method override?
Why is object oriented programming so hard?
What is a superclass in oop?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What are the 4 pillars of oop?
#include
What is polymorphism give a real life example?
Prepare me a program for the animation of train
What is a function in oop?
Which language is not a true object oriented programming language?
What is meant by oops concept?