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 is the difference between an enumeration and a set of pre-processor # defines?
Differentiate between a pointer and a reference with respect to c++.
What are the two types of comments?
Which programming language should I learn first?
What is the best c++ compiler for windows 10?
What is prototype for that c string function?
Is c++ proprietary?
Is c++ still in demand?
What do you mean by inheritance in c++? Explain its types.
Do class method definitions?
What is lambda in c++?
What is the real purpose of class – to export data?
Does c++ have finally?
What do c++ programmers do?
What is meant by forward referencing and when should it be used?