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

What is the purpose of main( ) in c language?

615


What is the explanation for prototype function in c?

564


what is the difference between 123 and 0123 in c?

716


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.

1493


write a program to copy the string using switch case?

2397






What is const and volatile in c?

561


What are structure types in C?

662


Write a program to print “hello world” without using semicolon?

669


What is the difference between array and linked list in c?

595


What do you know about the use of bit field?

606


How can I find out if there are characters available for reading?

639


What is the meaning of && in c?

545


Differentiate between a structure and a union.

758


Explain how can you be sure that a program follows the ansi c standard?

856


What is return in c programming?

507