# C Programming Code Examples

## C > Functions Code Examples

### C program to generate nth fibonacci term using recursion

Find The Position of A Point With Respect -
This is a C++ Program to check whether point lies above, below or on the line. For example, the equation of the line connecting points (2, 2) and (4, 5) is -3x + 2y + 2 = 0. The point (6, 3)

Check if Given Binary Tree is an AVL Tree -
This is a C++ Program to check if BST is AVL. An AVL tree is a self-balancing binary search tree. It was the first such data structure to be invented. In an "AVL tree", the heights of the

Code Perform Binary Search use Recursion -
C program, 'using recursion', performs binary search. In this c program, an array of random number is generated. User is asked to enter a key. The array of random numbers are sorted

C Code Calculate a floating-point average -
C Program code to Calculate a floating-point average using pointers. Memory allocation failed. Terminating program. Output the average. The average of the the values you...

Swapping Two Numbers Without Variable -
Imagine we have two number 1 and 2 stored in x and j respectively now. If we add x and j (1 + 2) and store it to x then x will become 3 and j is still 2. We subtract j (2) from new value of

C Program Code to Sort array of Structure -
C code accept records of the different states using array of structures. A structure should contain Char state, population, literacy rate, & income. Display the State whose Literacy

C Program to Print Sum of Array Elements -
In C, we are setting up the pointer to the base address of array and then we're incrementing pointer and using * operator to get & sum-up the values of all the array elements. Enter the

C++ Language Implementation For Queue -
Return the least recently inserted item in the queue or throw "Underflow" if empty. Return and remove the least "recently inserted" item from the queue. "Throw Underflow" if empty.