# C Programming Code Examples

## C > Sorting Searching Code Examples

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

C Decimal to Binary, Octal HEX Converting -
C programming converting example. Decimal number to Binary number, Octal number and HEX number converter. Enter any number to be converted. The Number has to be in the...

Find Fibonacci Series Understanding Logic -
The Fibonacci series is infinite but we can not make a C++ program that display an "infinite" output. In program, we take input the "range" in integer upto which Fibonacci series will be

Find the First Capital Letter in String Using -
C program code to find the first Capital letter that exists in string, using recursion. We have included ctype.h in order to make use of "int isupper(char);" function that's defined inside

Finds First & Last Occurrence of Character -
Take a string and a character as input. Store it in the array "str[]" & variable key respectively. Using for loop search for the variable key. If it is found then increment the variable count. If

Top Down Triangle Printing in C Language -
C Program code to print 'Top Down Triangle'. A triangle with one of its 'angle 90 degrees' is called right triangle. We shall now see how to print stars, in right triangle shape, but upside

Computes DFT Discrete Fourier Transform -
C++ Program to compute the 'coefficients' of the DFT (Discrete Fourier Transform) directly. In math, the discrete Fourier transform (DFT) converts finite list of equally spaced samples

Program to Solve The Fractional Knapsack -
Given a 'set of items', each with a mass and a value, determine the number of each item to include in a collection so that the total weight is less than or equal to given limit & the total

Displays Nodes of a Linked List in Reverse -
C Program uses recursive function & reverses the nodes in a linked list and displays the list. Linked list is an ordered set of data elements, each containing a link to its successor. Code