# C++ Programming Code Examples

## C++ > Strings Code Examples

### Program to Find the Length of a String

Calculate Addition or Subtraction & Trace -
Calculate the addition or subtraction & trace of 2 matrices. Here trace of the matrix is the sum of the elements on the main diagonal i.e the diagonal from the upper left to the lower

C++ Language & One Time Pad Algorithm -
C++ program encodes any message using the technique of 'One time' pad cipher technique. Input is not Case Sensitive and works only for all characters. 'White Spaces' are not ignored

C Coding Check the Character is Alphabet -
If the ASCII value of the character entered by the user lies in the range 97 to 122 or from 65 to 90, that number is an alphabet. 'a' is used instead of 97 and 'z' is used instead of 122. 'A'

Program code to check symmetric matrix -
C program to read elements in a matrix and check whether the given matrix is symmetric matrix or not. Symmetric matrix is a square matrix which is equal to its transpose. A is...

Polymorphism is a Feature using which an -
Function overloading & Operator overloading are examples of "Polymorphism". In The C++ programming In function overloading we can have more than one function by 'same name'

C++ Checks the Alphabets is Vowel or Not -
To check whether the input alphabet is vowel or not a vowel in C++, Enter a Character, then check the character for Vowel. The character is vowel, only if it's equal to a, A, e, E, i, I, o, O

Code Prints the Factorial of given Number -
C code Print the 'Factorial' of a given number. A factorial is product of all the numbers from 1 to n, where n is the 'specified number'. This C program find the product of all the number

C Program Code Performing Binary Search -
C program, Using Recursion, performs binary search. In this C program, an array of random number is generated. User is asked to enter a key. The array of random numbers are sorted