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 am i supposed to convert a class program in C++ to Matlab? Do i also need to make classes in matlab too or I can do it without making classes???Can somebody help....

0 Answers  


SIR i hv compleated b.tech(computer science engineering) with 82% marks. i want to join shipping corporation of india. it's my career dream. please i am eleasible or not?

3 Answers   Shipping Corporation of India,


if Papers-5,Pens-3,Pencils-2, Brought for 105Rs.Then Papers-10,Pens-7,Pencils-5.Then what is the cost of a Single Pen?

1 Answers   APGenco,


What is a PCB?

5 Answers   Country Club,


Who is responsible for PLLs?

1 Answers  


In HSE safety system, why the combination of H,S&E letters? and what is relationship?

2 Answers  


i need to know abt renault nissan company and the rounds and type of questions asked by today

0 Answers  


dam,rivers,states capt,

0 Answers  


Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.

0 Answers  


I need to know the process to add 100 tapes in ATL. Ho to inicialize them to the system? How is all the process i need to follow> Thanks

0 Answers   EDS,


what is isolator

0 Answers  


y the range of char is between -128 to 127 only????

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • 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)