 # C++ Programming Code Examples

## C++ > Mathematics Code Examples

### Program to Calculate Standard Deviation

Accept Two Integers and Check if They are - Take the two integers as input and store it in the variables x & y respectively. Using if, else statements check if x is equal to y. If they are equal, then print the output as "x and y are...

Sort Array in Ascending Descending Order - Program code to read elements in an array and sort elements of the array in ascending order. Read unsorted integer values in array and sort them in ascending order. Numerous

Program to Traverse the Tree Recursively - C program code, using recursion, performs traversal operation across the nodes in tree. The tree we have used is the binary search tree. The user generates a tree by inserting

C++ Program Deletes Vowels from Strings - To delete all the vowels from the string in C++ programming, 'you have to ask' to the user to enter the string, now start checking for vowel ('i.e., a, A, e, E, i, I, o, O, u, U') to delete all the

Code Finding Minimum Number of Edges - Program to find minimum number of edges to cut to make the 'graph disconnected'. An edge in an undirected connected graph is a bridge if removing it disconnects the graph.

Performs Binary Search on a Sorted Array - Returns a pointer to the first member that matches *key. A null pointer is returned if not found. The array must be sorted in ascending order. The number of elements in the array is

How to use Void (void) Data Type in The C - Void in C means 'nothing' or 'no-value'. This is used either with pointer declarations or with function declarations. And declares function which takes no arguments but returns an...

Program to Find Maximum and Minimum - Program to find maximum in array elements using recursion and c conditional operator. C program code to find maximum & minimum elements in an array using recursion. How to