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

Differentiate between declaring a variable and defining a variable?

616


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5819


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2343


What are the types of variables in c?

587


Can you please compare array with pointer?

625






What do you mean by c?

599


What does %d do in c?

554


Explain what is #line used for?

615


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1626


What are c preprocessors?

687


What does the file stdio.h contain?

610


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1502


Describe the header file and its usage in c programming?

632


Explain what are the different data types in c?

767


What is sizeof int in c?

615