second highest number in a given set of numbers

Answer Posted / kartik

Read the set of numbers in to an array ,sort it using bubble
sort(ascending order logic),the last but one number wil be
second highest number.....

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local variables c?

556


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2942


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

697


Explain what does the function toupper() do?

638


What are directives in c?

550






Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

692


Explain how can I make sure that my program is the only one accessing a file?

635


What is struct node in c?

624


How are structure passing and returning implemented?

594


Why is c fast?

612


Tell me when is a void pointer used?

650


In C language, a variable name cannot contain?

747


What is use of pointer?

591


What happens if you free a pointer twice?

615


Differentiate between full, complete & perfect binary trees.

675