# C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### Linear search in C++ Program Code

The C++ Booth's Multiplication Algorithm -
"Multiply two Signed numbers" using Booth's algorithm. Booth's multiplication algorithm is a multiplication algorithm that multiplies two signed 'binary numbers' in two's complement

C++ Program to Implement Ternary Tree -
C++ program implements the ternary tree, is a tree data structure in which each node has at most three "child nodes", distinguished as "left", "mid" and "right". Nodes with children

C++ Language Break Continue Statement -
We can use "break" statement inside loops to terminate a 'loop & exit' it. In above example loop execution 'continues' until either n>=20 or entered score is negative. This statement

Display decimal equivalent of input binary -
C Programming language example to display decimal equivalent of a input binary number. What will be the length of input no.? Don't exceed input from your input limit or 5 digits

Find sum of array elements using pointers -
C Program code find sum of array elements using pointers, recursion & functions. Sum of array elements using Recursion: Function calling itself. This program calls user defined

Checks Character is Uppercase Lowercase -
C program code to input character from user and check whether character is Uppercase or Lowercase alphabet using If Else Statement. Input a character from user. Store it in some

C++ Check whether a Vertex Cover of Size -
The problem takes E edges as input and then outputs whehter vertex cover of size K of the graph exists or not. 'Vertex Cover of a Graph' is, a set of vertices S, such that for every edge

C++ Return the Structure from a Function -
In this C++ example, we have "two functions" one gets the values from user, assign them to structure members and returns the structure and the other function takes that structure as