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
Why malloc is faster than calloc?
How can you determine the maximum value that a numeric variable can hold?
What is the purpose of sprintf?
Are there any problems with performing mathematical operations on different variable types?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What are the advantages of using linked list for tree construction?
Where is volatile variable stored?
What is the use of define in c?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is the 'named constructor idiom'?
What are the scope of static variables?
Write a factorial program using C.
What is %d called in c?
Why do we use & in c?
What is meant by initialization and how we initialize a variable?