# C++ Programming Code Examples

## C++ > Arrays and Matrices Code Examples

### program to add two matrices

```
```

```
```

C Programming Codes Displaying a Table - C Language code how to display a table in C programming language is more or less similar to that of counting. We use only one iteration and increment it with value of which table is

If Any Graph is Possible to be Constructed - This algorithm takes the input of the number of 'Vertexes' and their corresponding degree. Checks various 'constraints', tries to build the graph. If it fails, no valid graph can be created

C Codes Calculates Prints the Value of nPr - In the following c program we are calculating the value of nPr based on the given values of n and r. nPr can also be represented as P(n,r). The formula of P(n, r) is: n! / (n - r)!. P(5, 2)=5!

C Program to displaying Day of the Month - C programming code to implement calender. Program example to display day of month. Program will accept year, month and date from the user and will display the day of the

C Code Remove Spaces Blanks from String - C program remove extra spaces, blanks from the string. Removes 'extra blank spaces' from the given string and returns a new string with single "blank spaces" and skip all consecutive

Encoding a Message Matrix Multiplication - This C++ Program perform 'encoding matrix' using a hidden-key. "Encoding" is performed using "matrix multiplication" between given matrix and 'key matrix'. Enter the number of

Convert Decimal to Octal Number System - C Program Code input decimal number and convert to octal number system. Decimal number system is a base 10 number system. Decimal number system uses 10 symbols to