# C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### C++ Program to Find Median of Two Sorted Arrays

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++ Language Find Largest of 2 Numbers -
To find the largest number of the 2 numbers in C++, enter 2 numbers and checking which one is larger to "Display the Largest" on the output screen as shown here in the program

Use the Break Statement in C++ language -
It's used in switch case control structure after the case blocks. Generally all cases in switch case are followed by a "Break Statement" to avoid the subsequent cases (see the example

C Program to find determinant of a matrix -
C program to read elements in a matrix and find determinant of the given matrix. The Determinant of a matrix is a special number that can be calculated from the elements of

Print Nth Node from the last of Linked list -
C Language code to prints the Nth node from the Last Node of a Linked List. The approach used is to first point a pointer to a node which is N nodes ahead from the head. Then, move

How to Use Constructors in C++ language -
Read the comments in the following program to understand each part of the program. This is a "default constructor" of the class, you do note that it's name is same as class name and

C++ Additions Subtractions Multiplication -
Perform addition, subtraction, multiplication and division of any two numbers in 'C++', you have to enter the 'two number' and enter the operator to perform the particular operation

C++ Find Closest Pair of Points in an Array -
Sort array of points according to X coordinate and Y coordinate. Find the distance between two points. And return the 'smallest distance' between 2 points. Find the 'distance' beween