# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### Program to Perform Matrix Multiplication using Recursion

Transitive Closure by Warshall's algorithm -
Finding the transitive closure using Warshall's Algorithm. The Transitive Closure of a binary relation R on a set X is the 'transitive relation' R+ on set X such that R+ contains R and R+ is

C Reverse an Array without using another -
C reverse array without using another array relies on the above logic. What we need to do is maintain two array indexes. arrIndex that moves from size - 1 to 0. revIndex that moves

C++ Finds the Minimum Element of Array -
Construct binary search tree for the unsorted data array. For the "minimum element" move the pointer to the leftmost child node. So the value will be the "minimum value" among the

Print only Odd Numbered Levels of a Tree -
Two functions in this method. One is to print all nodes at a given level ("printGivenLevel"), and other is to "print level order traversal" of the tree ("printLevelorder"). printLevelorder

C Program Print Number Pyramid Pattern -
In Each Iteration we are moving downward so increment "y". For each new 'Iteration' we are starting from beginning but one 'co-ordinate' back so decrement x. 'Moves Cursor Position'

Calling by reference is a little bit the same -
It affects the "value of the variable" from the Parameter List. There is a possibility to use the default values for the parameters in the parameters list. In this case you can assign a

C Programming calculator use Switch Case -
Step by step descriptive logic to create menu driven calculator that performs all basic math operations. Input 2 numbers and a Character from user in the given format. Store them in

Making Your Functions to be Inline in C++ -
An inline function is a function in which body is inserted in the "place of its call". There are two ways to make your functions to be inline. The first one consists in 'simple definition' of