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
Describe the setting up of my member functions to avoid overriding by the derived class?
Why null pointer is used?
Write about all the implicit member functions of a class?
Define the operators that can be used with a pointer.
What are the basic data types used in c++?
Define stacks. Provide an example where they are useful.
Describe delete operator?
What is the benefit of learning c++?
What is the purpose of the "delete" operator?
Can we define function inside main in c++?
What is class and structure in c++?
What is the use of this pointer in c++?
What happens if a pointer is deleted twice?
Is c++ the hardest language?
What are the 3 levels of programming languages?