# C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### Find the Minimum element of an Array using Binary Search approach

Find the Length of Strings without strlen() -
We are Counting the Number of characters in a given String to find out & display its Length on console. Upon 'execution' of this program, the user would be asked to enter string, then

C If Expression is Correctly Parenthesized -
C program code takes a expression as input and checks if the expression is correctly parenthesized. Take a expression as input and store it in the array. Check for the "(" ...

C Code using of &(ampersand) *(asterisk) -
C We have already seen in the first example that we can display the address of a variable using ampersand sign. I have used &num to access the address of variable num. The &...

Converts Hexadecimal to Octal in The C++ -
Program ask to the user to enter any number in Hexadecimal to convert it into octal, then display the result on the screen: Here first we will convert the entered hexadecimal number

C Program Checking Armstrong Numbers -
Check for Armstrong Number in C language. Armstrong Number: If sum of cubes of digits of number equal to same given number then the number is called as Armstrong Number.

C Program Implement BogoSort in Integer -
C Code to check if the "array is sorted" or not. Shuffle the "Array Elements" and check if the array is sorted or not & if not sorted calls the shuffle function to shuffle the array elements

C Programming Language Mode Program -
C In Statistics Maths, a mode is a value that occurs the highest numbers of time. Example assume a set of values 8, 5, 4, 7, 8. mode of this value set is 8 as it appears more than any

The C Language Print the Floyd's Triangle -
Floyd's triangle, named after 'Rober Floyd', is a Right Angled Triangle, which is made using natural numbers. Starts from 1, consecutively selects the next Greater number in Sequence.