C program to display all possible permutations of letters of a string

This C program generates all permutation of letters of a string. In permutation, the order in which elements appear does matter. Here is the source code of the C program to display all possible permutations of letters of a string. The C program is successfully compiled and run on a Linux system. The program output … Read more

advertisement

C program to sort integers using Bubble Sort

This is a C Program to implement Bubble Sort Algorithm. Problem Description We have to input an array of numbers and sort them using Bubble Sort algorithm in C Language. Expected Input and Output 1. Average case (Unsorted array): When the input array has random distribution of numbers. For example: If the input array is … Read more

advertisement

C program to display all subsets with k element in each subset

This C program generates subsets with k elements in each subset. Generate a permutation, and print only k elements. Here is the source code of the C program to display all subsets with k element in each subset. The C program is successfully compiled and run on a Linux system. The program output is also … Read more

advertisement

C program to display mode of an array

This C program finds mode in an array. Mode specifies the most frequently appearing element of the set. Here is the source code of the C program to display mode of an array. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C progarm … Read more

advertisement

C program to search element in Binary search tree

This C program implements search in Binary search tree. This is the data structure where inorder traversal of the binary search tree leads to sorting of elements. Here is the source code of the C program to search element in Binary search tree. The C program is successfully compiled and run on a Linux system. … Read more

advertisement

C program to display all possible combination of list of numbers

This C program to generate all combination of list of numbers. In combination, order in which elements appear doesn’t matter. Here is the source code of the C program to display all possible combination of list of numbers. The C program is successfully compiled and run on a Linux system. The program output is also … Read more

advertisement

C Program to Find kth Smallest Element by the Method of Partitioning the Array

This is a C Program to find kth smallest element by method of partitioning. The same partitioning function which is used for Quicksort algorithm can be used. Here is source code of the C Program to Find kth Smallest Element by the Method of Partitioning the Array. The C program is successfully compiled and run … Read more

advertisement

C Program to Generate All Possible Subsets with Exactly k Elements in Each Subset

This is a C Program to generate all possible subsets with exactly K elements in each subset. Generate a permutation and include only k elements in subset. Here is source code of the C Program to Generate All Possible Subsets with Exactly k Elements in Each Subset. The C program is successfully compiled and run … Read more

advertisement

C program to display sorted list using Bucket sort

This C program sorts elements of an integer array using Bucket sort. This is a linear time algorithm. Here is the source code of the C program to display sorted list using Bucket sort. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C … Read more

advertisement

C program which implements locality of reference in Link list

This C program Implements locality of reference in Link list. This is a program to find element in a linked list and element is moved to the front as soon as it is found. This technique is based on the locality of reference. Here is the source code of the C program which implements locality … Read more

advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Youtube | Instagram | Facebook | Twitter