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
What is the purpose of main( ) in c language?
What is the explanation for prototype function in c?
what is the difference between 123 and 0123 in c?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
write a program to copy the string using switch case?
What is const and volatile in c?
What are structure types in C?
Write a program to print “hello world” without using semicolon?
What is the difference between array and linked list in c?
What do you know about the use of bit field?
How can I find out if there are characters available for reading?
What is the meaning of && in c?
Differentiate between a structure and a union.
Explain how can you be sure that a program follows the ansi c standard?
What is return in c programming?