C Program to Find Ceiling and Floor Value of Sorted Array

This C Program calculates ceiling & floor of X given a sorted array & a value X. Here is source code of the C Program to calculate ceiling & floor of X given a sorted array & a value X. The C program is successfully compiled and run on a Linux system. The program output … Read more

advertisement

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

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.