Answer Posted / foreverkushal
int SecondMax(int *Array, int ACount)
{
int Fm = 0, Sm = 0;
for (int i = 0; i < ACount; i++)
{
if (Array[i] > Sm)
{
if (Array[i] < Fm) Sm = Array[i];
else
{
Sm = Fm;
Fm = Array[i];
}
}
}
return Sm;
}
| Is This Answer Correct ? | 31 Yes | 22 No |
Post New Answer View All Answers
How do you compile the source code with your compiler?
what is C++ exceptional handling?
What is the difference between an array and a list?
What is a buffer c++?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Can we overload operator in c++?
Is it possible to get the source code back from binary file?
Should I learn c or c++ first?
What is c++ and its features?
What is a storage class? Mention the storage classes in c++.
Explain the difference between new() and malloc() in c++?
How does the copy constructor differ from the assignment operator (=)?
What is class invariant in c++?
Explain about templates of C++.
What is the disadvantage of using a macro?