 # C++ Programming Code Examples

## C++ > Data Structures Code Examples

### C++ Program to Implement Binomial Heap

C++ Multiply Two Matrices use 2D Arrays - C++ Code is very simple it takes input in two 2D arrays each with size of 2X2. After taking the input program "multiply two matrix" in 3 nested for loops. Size of arrays is defined use

C Code Encryption and Decryption of files - C language encrypting and decrypting files. So as to change enter file path. Enter password. Open a file to store decoded data. Until end of file to be encrypted read each...

C Programming Language Mode Program - C In Statistics Maths, a mode is a value that occurs the highest numbers of time. Example assume a set of values 8, 5, 4, 7, 8. mode of this value set is 8 as it appears more than any

Whether a Path Exists Between two Given - We create a queue for BFS. Mark the current node as visited and enqueue it. It will be used to get all adjacent vertices of a vertex. Get all adjacent vertices of the dequeued vertex s. If

C Programming Codes Reverse an Integer - C Reversing an integer, takes an integer input from the user. Then the while loop is used until n != 0 is false. In each iteration of while loop, the remainder when n is divided by 10

C Print Range of Fundamental Data Types - C Program Code to Convert the number of bytes into bits by multiplying the bytes with 8. Use two functions namely signed_one() and unsigned_one() for calculating the range

Program to Display Odd numbers without - C Program to print odd numbers from 1 to n without if statement. The above approach is not optimal approach to print odd numbers. Observe the above program for a while. You

C++ Checking if a Given Graph is Bipartite - Bipartite Graph is a graph in which the set of 'vertices' can be divided into 2 sets such that all vertex should be present in either set 1 or set 2 but not both, and there should no edge