# C Programming Code Examples

## C > Functions Code Examples

### print all natural numbers from 1 to n using recursion

Perform Integer Partition for Specific Case -
C++ program code generates all the possible "partition" can be generated by breaking the given value. This algorithm takes the input of a "natural number" and prints all the possible

C Language Reference Enum Value by Int -
C program example to learn reference enum value by int. Press a key to select animal: 1: cat, 2: dog, 3: lion, 4: tiger. Generate a new random number. Read and discard character.

C++ Program to Implements the B+ Tree -
A B+ tree is an n-ary tree with a variable but often large number of "children per node". A B+ tree consists of a root, internal nodes and leaves. The root may be either a leaf or node

Check a Number can be Expressed as Sum -
Program to check whether a number can be expressed as sum of two prime numbers. To accomplish this task, "checkPrime()" function is created. The "checkPrime()" returns 1 if the

C Circular Queue implementation through -
C Programming language code for circular queue implementation through Array. Add element to Circular Queue. Delete element from the Circular Queue. Do you want to do

Addition of Two Matrix in C++ Language -
To achieve Addition of two matrix we need 2 "Dimensional Array" and add their elements with each other, print result on screen. Enter elements of firts matrix. Enter elements of 2.

C++ Programming Array Sort Bubble Sort -
To sort an array in ascending order by bubble sort in C++ language, you have to ask to user to enter the array size then ask to enter array elements, start sorting the array elements by

Program Print Fibonacci Series in a Range -
Fibonacci series is a series of numbers where the current number is the sum of previous 2 terms. For Example: 0, 1, 1, 2, 3, 5, 8, 13, 21,... Here c is the current term, b is the n-1th term