C Program to Sort an Array in Descending Order

This is a C Program to sort an array in descending order. Problem Description This program will implement a one-dimentional array of some fixed size, filled with some random numbers, then will sort all the filled elements of the array. Problem Solution 1. Create an array of fixed size (maximum capacity), lets say 10. 2. … Read more

advertisement

C Program to Sort N Names in an Alphabetical Order

This is a C Program to sort the names in an alphabetical order. Problem Description The program will accept some names from the user as input & then sorts them in an alphabetical order using string operation. Problem Solution 1. Create a 2D character array to store names of some fixed size. 2. Take names … Read more

advertisement

C Program to Implement Selection Sort using Functions

This C Program implements selection sort method using functions. Selection sort is among the simplest of sorting techniques. It works as follows: first find the smallest in the array and exchange it with the element in the first position, then find the second smallest element and exchange it with the element in the second position, … Read more

advertisement

Linear Search in C

Linear search in C is a searching method/algorithm. In the linear search algorithm, we traverse through the data structure from any one point and traverse until the data item is found in the data structure. These data structures could be array, string, Linked-List, Stack, Queue, or any other data structure. Linear Search Example: Find the … Read more

advertisement

C Program to Search Sorted Array using Binary Search

This is a C Program to implement Binary Search Algorithm. Problem Description We have to create a C Program which uses Binary search algorithm to predict that the element is present or not in the array. The user has to input a sorted array because binary search works on sorted array. Expected Input and Output … Read more

advertisement

C Program to Sort N Numbers in Ascending Order using Bubble Sort

This C Program sorts the numbers in ascending order using bubble sort. Bubble sort is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order. Here we need to sort a number in ascending … Read more

advertisement

C Program to Sort an Array in Ascending Order

An array is a collection of similar data elements stored in a contiguous memory location. Problem Description This program will implement a one-dimentional array of some fixed size, filled with some random numbers, then will sort all the filled elements of the array. Problem Solution 1. Create an array of fixed size (maximum capacity), lets … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.