second highest number in a given set of numbers

Answer Posted / suriya

put all nos. in an array and sort it using selection sort in
ascending order the last no. will be the second highest no.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is adt in c programming?

615


How can I copy just a portion of a string?

821


main() { printf("hello"); fork(); }

699


What is register variable in c language?

609


What is this infamous null pointer, anyway?

613






pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2205


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1310


difference between object file and executable file

6102


What is use of pointer?

591


Difference between Shallow copy and Deep copy?

1576


Do pointers store the address of value or the actual value of a variable?

613


Describe explain how arrays can be passed to a user defined function

609


What is the difference between array and pointer?

571


How to implement a packet in C

2401


Why do we use header files in c?

588