# C++ Programming Code Examples

## C++ > Arrays and Matrices Code Examples

### Cpp Tutorial to reverse an array code

Program Code to Implement Bellmanford -
This C++ Language program implements the "Bellmanford Algorithm" is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in weighted

Display decimal equivalent of input binary -
C Programming language example to display decimal equivalent of a input binary number. What will be the length of input no.? Don't exceed input from your input limit or 5 digits

C Codes Sort Even Odd Elements of Array -
C program to input elements in an array from user and sort all even and odd elements of the given array separately without using any other array. If minimum element of the array

Code fscanf Works Exactly Like the scanf() -
C Programming fscanf: works exactly like the scanf() function except that it reads from the stream. Returns the number of arguments actually assigned values or EOF on failure &

Print Natural Number in Reverse in Range -
Logic to print Natural Number in reverse in a given range. If you got above logic, then you can easily modify to print natural numbers in reverse in given range. We need to make two

Copying an Array involves index by index -
C program code shall help you learn one of basics of arrays. Copying an array involves index-by-index copying. For this to work we shall know the length of array in advance,...

C Display Fibonacci Series Using Recursion -
Program code display 'Fibonacci series' using recursion. Using "fibonacci_series()" that calls itself recursively, in order to display series for the entered number of terms. Program enter

Check Prime or Armstrong Number Using -
In this program, two User-Defined functions checkPrimeNum() & checkArmstrongNum() are created. The checkPrimeNum() returns 1 if the number entered by the user is a Prime