# C++ Programming Code Examples

## C++ > Data Structures and Algorithm Analysis in C++ Code Examples

### Implementation for leftist heap

Code Swap first and last digit of a number -
C program to input a number from user and swap first and last digit of the given number. Input number from user, find last digit, find total number of digit - 1, find first digit. How

C Program to Simulate a Simple Calculator -
This C Program simulates a simple calculator. Program performs arithmatic operations like addtion, subraction, multiplication & division. Assume that the two numbers a&b are given.

Program Add Two Numbers Using Pointer -
In program we're going to accept 2 numbers from user using pointer. After accepting Two Numbers we are going to add Two Numbers by using "De-reference Operator" in Pointer.

Code Support Infinite Precision Arithmetic -
C Program code creates a support for Infinite Precision Arithmetic which allows storage of Large Integers which is beyond the Range of the integral limit. C is architecture dependent

Find GCD of the Numbers Using Recursion -
C Language program, use recursion, finds the GCD of the two numbers entered by the User. The user enters 2 numbers by using a space in between them or by pressing enter after each

Find Reverse of a Number using Recursion -
Declare recursive function to find reverse of a number. Lets give a meaningful name to our function, say reverse(). C function computes reverse of number, hence it must accept an...

C Program code check Armstrong Number -
A number is called as "Armstrong Number" if Sum of Cubes of Digits of Number is equal to the number itself. In C code, we are checking the input number is Armstrong or not. Check

Add Two Matrix Multi-Dimensional Arrays -
In this program, user is asked to entered the number of rows r and columns c. The value of r and c should be less than 88 in this program. The user is asked to enter elements of two...