# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### An example of how to initialize a matrix: loop

C++ Implementations Binary Search Tree -
Insert x into the tree; duplicates are ignored. Remove x from the tree. Nothing is done if x is not found. Find the "smallest item" in the tree. Find the "largest item" in the tree. Find

C++ Programming Bubble Sort Algorithm -
The Bubble Sort is a simple sorting algorithm that 'repeatedly' steps through the List to be sorted, compares each pair of adjacent items and swaps them if they're in the wrong order.

C++ SQL Connects to ODBC Data Sources -
Allocating memory for "ODBC" Environment handle. Connecting to the data source "db97" using userid and password. Prepare the SQL statement by assigning it to the "statement"

Code Sum of Prime numbers between 1- n -
C program to find sum of all prime numbers between 1 to n using for loop. Prime numbers are positive integers greater than 1 that has only two divisors 1 and the number itself. For

Undirected Graph contains a Eulerian Path -
Check if this graph is Eulerian or not. Check if all non-zero degree vertices are connected. If graph has no "odd degree vertex", there is at least one Eulerian Circuit. And if graph as two

Using Quick Sort Algorithm in C Language -
'Quicksort' is a divide and Conquer algorithm. 'Pick an element' from the array, this element is called as pivot element, divide the unsorted 'array of elements' in 2 arrays with values less

Find Maximum Numbers of Edge Disjoint -
C++ program displays the maximum number of edge disjoint paths present between two vertices. 'Maximum number' of edge disjoint paths refers to the maximum flow or shortest

C Program Finds Perimeter of a Rectangle -
C input length and width of a rectangle and calculate perimeter of the rectangle. How to find perimeter of a rectangle in C language. Input length and width of the rectangle using