Posts

Showing posts with the label C Programs

C program for bubble sort

Bubble sort in c: Bubble sort is the simplest algorithm for sorting elements of array. We can sort elements in ascending and descending order using bubble sort algorithm.

Remove duplicate elements from unsorted array

Simple C program to remove duplicates from array.

Find pair of elements in array that sum is given number k

Simple C program to find pair in array. Simple method is run two for loop and find pair.

Count frequency of character in string C program

Simple C program to count frequency of each character in a string. If string a "programmingside" then frequency of characters:

Count total number of nodes in linked list using recursion

Simple C Program to count total number of node in a linked list using recursion. Count total number of nodes using iterative method.

Count total number of elements in linked list

Simple C Program to count total number of elements in a linked list.

Print matrix by 90 degrees rotation C program

Given a matrix. Rotate it by 90 degrees.