# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### count frequency of each element in an array

Program Code to Implement Linear Search -
C implements 'Linear Search'. Linear search is also called as sequential search. Linear search is a method for Finding a Particular value in a list, that consists of checking every one of its

C++ Program Merge Sort using Linked list -
Split the Data into two equal half until we get at most one element in both half. Merge Both into one making sure the resulting 'Sequence' is sorted. Then 'recursively' split them, merge

Implement Nearest Neighbour Algorithm -
This is a C++ Program to implement nearest neighbour algorithm to 'solve TSP'. This C++ program implements the travelling salesman problem which computes the minimum cost

Program Find the Average using Function -
C code to find the average using function. We have created user defined function average() for the calculation of average. The numbers entered by user are passed to this c function

C Coding Print all the Paths from the Root -
C language program Function to store all the paths from the root node to all leaf nodes in a array. Function which helps the print_path to recursively print all the nodes. Function to...

C Codes Displays Largest Element of Array -
This C Program takes n number of elements from user and stores it in array arr[]. To find the largest element, the first two elements of array are checked and largest of these two...

C Programming Language Mode Program -
C In Statistics Maths, a mode is a value that occurs the highest numbers of time. Example assume a set of values 8, 5, 4, 7, 8. mode of this value set is 8 as it appears more than any

Count Frequency of Characters in The C++ -
Frequency of character in a string means how many times a "particular character" is present in a string. In sample; suppose we have string hitesh in this word h repeated 2 times, it's the