Write a program in ‘C’ that will accept 10 numbers from the
user, sort them & then perform the binary search. The
searching number will be arithmetic mean of the 10 numbers
accepted from the user.
Write the sort() & binSearch() functions for performing
the sorting & binary search. Also create display function()
for displaying the list.
Sort() function will use selection sort and only receive
one argument (Single char type)as type of sorting i.e.
ascending (a) or descending (d). Display the list after
sorting using a display() function.
binSearch() function will accept one argument as a number
to be search & return null or the index position of that
number in the array.
display() function is non argument non return type
function. It will simply display the list row-wise.
Program should use these functions by displaying the
appropriate message for found or not found.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Engineering AllOther Interview Questions

how much the percentile as a good percentile in elitmus.

0 Answers  


What is the allowable load carrying capacity of a circular column section of 400 mm diameter reinforced with 6x25 mm diameter bars adequately tied with spirals? Consider concrete of grade M25 and steel of grade Fe 415.

0 Answers  


what are the examples of E-Based Applications?

1 Answers  


basic difference between run time and compile time polymorphism

3 Answers  


how to find out the name of the users who are currently working starting with the same characters in unix os

0 Answers  






how will u recieve an std idoc from sendor->reciever

0 Answers   HCL,


How would you design a gravity dam for holding back water?

0 Answers  


reverse a number ( like 1234 into 4321) using malloc in C programming

0 Answers   TCY Online,


is it possible to apply for visa interview in 4-1 sem for doing ms in usa

1 Answers   QSpiders,


what is the difference between public static void main (String args[]) and static public void main(String args[]) in java?

0 Answers  


if u have question papers/sample papers of any of PSUs,plz send me at dinesh.pandey3@gmail.com

0 Answers  


Friends Any one tell me the best institute for the telecom protocol course

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)