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
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What is assert and when would I use it?
Write programs for String Reversal & Palindrome check
What is the translation phases used in c language?
What is union in c?
Does c have function or method?
can we implement multi-threads in c.
Define and explain about ! Operator?
Can the “if” function be used in comparing strings?
Add Two Numbers Without Using the Addition Operator
What is an endless loop?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What are identifiers and keywords in c?
What are the 4 types of programming language?