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
Why is object oriented programming so hard?
What is the advantage of oop over procedural language?
What is the real time example of encapsulation?
Why do we need oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is encapsulation and abstraction? How are they implemented in C++?
How to improve object oriented design skills?
What is new keyword in oops?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is polymorphism explain its types?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is difference between pop and oop?
Who invented oop?
What is the difference between a constructor and a destructor?
What is object in oop?