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
to find the closest pair
How will you delete a node in DLL?
What language is windows 1.0 written?
Explain what is the benefit of using const for declaring constants?
Can you apply link and association interchangeably?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What is the modulus operator?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
develop algorithms to add polynomials (i) in one variable
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
what is the height of tree if leaf node is at level 3. please explain
Explain about the functions strcat() and strcmp()?
What are preprocessor directives in c?
What is the usage of the pointer in c?
What is the difference between %d and %i?