find second largest element in array w/o using sorting
techniques? use onle one for loop.

Answer Posted / tata indicom

What if the first element which you are assigning to max and
secondmax is itself the largest number in array.....
In such a case you will not be able to find second largest in
the array.....

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

741


why do some people write if(0 == x) instead of if(x == 0)?

656


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

572


Why is void main used?

624


What do mean by network ?

661






How is = symbol different from == symbol in c programming?

616


What are the Advantages of using macro

688


What is c system32 taskhostw exe?

596


Is main an identifier in c?

607


Write a program to check palindrome number in c programming?

601


What does c mean in basketball?

563


How can you determine the size of an allocated portion of memory?

748


What is pass by reference in c?

617


Add Two Numbers Without Using the Addition Operator

357


What are variables c?

624