# C++ Programming Code Examples

## C++ > Pointers Code Examples

### Find a difference between two Numbers Using Pointer in C++

Diameter Circumference & Area of Circle -
C program code input radius of a circle from user and find diameter, circumference and area of the circle. How to calculate diameter, circumference and area of a circle whose...

Takes octal number as input and converts -
C Program take a octal number as input and store it in the array octalnumber and using switch statement access each digit of a octal number and print its equivalent binary value

C++ Sample Calculate Power of a Number -
Program takes two numbers (a 'base number' and an 'exponent') and Calculates the Power. The technique works only if the exponent is a positive integer. If you need to find the power

C Language Check Triangle is Valid or Not -
C Program code to input side of a Triangle & check whether triangle is valid or not using if else. A triangle is valid if sum of its two sides is greater than the third side. Means if a, b, c

Find the Length of the String by Recursion -
C Program uses recursive function and counts the number of nodes in a Linked List. A linked list is an 'Ordered Set' of data elements, each 'containing a link' to its successor. Recursive C

Code Put Even and Odd elements of array -
C program to input elements in an array and put all even and odd elements in 2 separate array. Separate even and odd elements of a given array in 2 separate array containing...

C++ Matrix Addition Operation of Adding -
Two dimensional array in C++, represented in the form of rows and columns, also suitable with matrix. For multi dimensional array, the element with indices i,j would have "address"

C Code Locate Highest Lowest nr in Array -
C Program example Return the largest of the two passed numbers. Return smallest of the two passed numbers. Load some random values into the array. Print set of numbers.