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
Is c the same as c++?
What is the basic concept of c++?
How does com provide language transparency?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
Explain the pure virtual functions?
What is a null object in c++?
Using a smart pointer can we iterate through a container?
What does std mean in c++?
Should I learn c or c++ first?
Briefly describe a B+ tree. What is bulk loading in it?
how to explain our contribution in the project?
What is pointer in c++ with example?
Describe the advantage of an external iterator.
Comment on local and global scope of a variable.
How do you declare A pointer to a function which receives nothing and returns nothing