# C++ Programming Code Examples

## C++ > Pointers Code Examples

### Pointer Simple with Reference operator (&) and Dereference operator (*)

Code find sum of all elements of an array -
Write a C program to read elements in an array and find the sum of all elements of the array. C program to find sum of elements of the array. How to add elements of an array

Program to check Palindrome string using -
A 'Palindrome' is a special string which reads same from backward or forward such as eye, mom, madam, dad, bob, teet. We traverse a string character by character 'both direction'

C++ Generating All Subsets of a Given Set -
Program print all the possible combination of each length from the given array in gray code order. The 'time complexity' of this algorithm is 'O(n*(2^n))'. This algorithm takes the input

C Count Trailing Zeros in a Binary Number -
How to find total number of trailing zeros in any given number using bitwise operator in C programming. Write a C program code input any number from user and count number of...

C Check the Number is Armstrong number -
C Program to input a number from user and check whether given number is Armstrong number or not. Armstrong number is n-digit number that is equal to the sum of the nth...

Determine if a given Matrix is a Sparse or -
C Program determines the given matrix is a sparse matrix. Sparse matrix is a matrix with the majority of its elements equal to zero. Accept matrix and checks whether the given

C Codes Surface Area & Volume of a Cube -
The formula used to find the surface area and volume of the cube is surface_area = 6 * (a*a) and volume = a*a*a. Library Function is used in header file to compute Math Functions. We

Computes DFT Discrete Fourier Transform -
C++ Program to compute the 'coefficients' of the DFT (Discrete Fourier Transform) directly. In math, the discrete Fourier transform (DFT) converts finite list of equally spaced samples