# C Programming Code Examples

## C > Mathematics Code Examples

### Program to Calculate the Area of a Circle

C Performs Quick Sort on A Set of Entries -
C program to using recursion, performs quick sort. A 'Quick Sort' is a sorting algorithm with 'complexity of O(nlogn)'. It is used for sorting Numbers, Structure, Files. Enter the number

C Increment every Element of the Array by -
C Program increments every element of the array by one & print array. We need to add 1 to all the elemnts of the given array. After adding 1 to all the elements of an array print

C++ Implement Gift Wrapping Algorithm -
Implement Gift Wrapping algorithm to find convex hull in "Two Dimensional Space". In computational geometry, the gift wrapping algorithm is an algorithm for computing 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++ Program Finds Transpose of a Matrix -
First we have to clear about what is transpose of a matrix. Its to replace the number of rows with number of colums, vice versa to make a new matrix. So for example if a matrix 'A' has

C++ Compute Combinations by Factorials -
Prints a total number of combination possible for given n and r value. The "time complexity" of this algorithm is O(n). This algorithm takes the input of n and r value. Function to find the

Generate All Possible Subsets With Exactly -
Algorithm takes the input of "n" data element and 'prints all possible' combination of length 'k'. It maintains a boolean array of length 'n'. If the corresponding boolean value is true, then

CGI Programs using C++ in Programming -
CGI stands for common gateway interface is set of standards that define how information is exchanged from a 'webserver', passing the web user's request to an application program