# C++ Programming Code Examples

## C++ > Arrays and Matrices Code Examples

### Program to Reverse an Array

Implement a Binary Search Tree by Linked -
This C++ program, displays the traversal of a "binary search tree" in inorder,postorder and preorder mode using "Linked Lists". A linked list is an ordered set of 'data elements', each

Program Create a File & Store Information -
C Code creates a file & store information. We frequently use files for storing information which can be processed by our programs. In order to store information permanently and

C++ Finds Maximum Element in an Arrays -
Construct "Binary Search" tree for "unsorted" data array. For the 'Maximum element' move the pointer to the rightmost child node. This value will be the minimum value among data.

Program find Reverse of Negative number -
Write a recursive function in C Programming to find reverse of a number. To find reverse of a negative number use the logic for positive number reverse which I mentioned above. In

C++ Solving The Dominating Set Problem -
Problem takes 'E edges' as input and outputs dominant set of the graph, implementing the following heuristic. Dominant set of a graph's to find, a set of vertices S, such that for every

Find an Input Substring in an input main -
C Programming example code to find an input substring in an input main string. The given sub-string is present in the main string. The given sub-string is not present in the...

C++ Code Find Largest of Three Numbers -
To find the largest number among the three numbers in C++, enter three numbers, now checking which one is the "largest number". After finding the largest number, we display

Find the Length of Strings without strlen() -
We are Counting the Number of characters in a given String to find out & display its Length on console. Upon 'execution' of this program, the user would be asked to enter string, then