Linear Search Program using 1-D Array

The linear search method is used when your list is not in any order. This program is written in C++ to showcase the working of a linear search method in 1-d array

Binary Search Program using 1-D Array

Binary Search method is one of the most taught searching algorithm in any computer class. Here we are implementing binary search method on a sorted one dimensional array. 

String in Cpp- Assignment No-1

Write C++ statements to do the following: Q1 Declare and initialize an array of scores of 20 batsmen of type int. Display the 10th component of the array scores. Display the 5th component of the array scores. Set the value of the 8th component of the array scores to 35. Set the value of the […]