Thursday, 21 June 2018

ch-8 Searching and Sorting

1 What is the difference between linear search and binary search?
15 Write a ‘C’ program to find the minimum of the 8 floating point numbers and its place in the array.
20  What do you mean by a pointer variable? Write a function in ‘C’, using pointers for the array of elements, for sorting the elements.
13 Write a program in ‘C’ which asks a user to input integers in an array of size 20. It then arranges the elements in decreasing order and prints the array.

No comments:

Post a Comment

ch-12 File Handling

Mcq 1. What does fp point to in the program?   #include<stdio.h> int main() {   FILE *fp;   fp=fopen("trial",...