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
Define upcasting.
Is facebook written in c++?
Describe friend function & its advantages.
What are formatting flags in ios class?
Is swift a good first language?
How does a copy constructor differs from an overloaded assignment operator?
What is searching?
What is c++ good for?
Describe Trees using C++ with an example.
Is c++ map a hash table?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
How do I start a c++ project?
What are static variables?
What is a pdb file?
Define pointers?