# C++ Programming Code Examples

## C++ > Strings Code Examples

### Programming Code to Find Length of String

C Language Code Display Prime Numbers -
Any whole number which is Greater than 1 & has only two factors that is 1 and the number itself, is called a "Prime Number". Other than these two number it has No Positive Divisor.

Check Even or Odd using Conditional and -
C input any number and check whether the given number is even or odd using bitwise operator. Check to whether a number is even or odd using bitwise operator in C. Logic to

Compares two Integers in The C Language -
Comparing two integer variables is one of the simplest c program you can write at ease. In this program, you can either take input from user using scanf() function or statically define

C Sample Code Prints the Pascal's Triangle -
Pascal's triangle is one of the classic example taught to "engineering students". It has many interpretations. One of the famous one is its use with bionomial equations. The triangle is

Implement Interpolation Search algorithm -
Implement 'Binary search' using interpolation approach. The Time complexity is "O(log(n))". Implement the Binary Search on sorted array. Then Calculate mid value using 'interpolation'

C Code Reads a Number of Objects by Size -
Reads a number of objects by size and stores them in buf. C programming code returns the number of items actually read. Get open a file and read. If there is an error give a message.

Converts Octal Number to Binary Number -
In this c program code we have created a user defined function octalToBinary(). Function converts the octal number (entered by user) to decimal number first and then converts...

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