Answer Posted / adnan sheikh
int SecondMax(int Array[], int ALength)
{
int Fmax,Smax;
Fmax=Smax=Araay[0];
for (int i = 0; i < ALength; i++)
{
if (Array[i] > Smax){
if (Array[i] < Fmax){
Smax = Array[i];
}
else{
Smax = Fmax;
Fmax = Array[i];
}
}
}
return Smax;
}
Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
What methods can be overridden in java?
In a function declaration what does extern means?
What is the most useful programming language?
what Is DCS ? what i will get benefit when i did?
What do you mean by public protected and private in c++?
What is std :: flush?
What are libraries in c++?
What does h mean in maths?
why and when we can declar member fuction as a private in the class?
What does namespace mean in c++?
What is the full form of stl in c++?
What are the benefits of operator overloading?
Explain the scope of resolution operator.
What is an orthogonal base class in c++?
Which operations are permitted on pointers?