# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### Program to Accept an Array & Swap Elements using Pointers

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

Create strings, shuffle existing strings in C -
C programming code randomize string STR. Sefinitely not cryptographic secure. Strip trailing newline. Pick a random char out of input string. Swap orig char with pick and...

Takes octal number as input and converts -
C Program take the octal number as input and store it in the variable octal. Initialize the variables decimal and j to zero. Obtain the remainder and quotient of the octal number.

C++ Bitap Algorithm and String Matching -
The algorithm tells whether a text contains a substring which is "approximately equal" to a given pattern, where approximate equality is defined in terms of Levenshtein distance and

C++ Codes Generate Armstrong Numbers -
To generate 'Armstrong numbers' in C++, you have to ask to the user to enter the interval to print the Armstrong number between a given interval as shown here in the following codes.

What is The Function Overloading in C++ -
Code sample about C++ language Function overloading. If a "C++ Class" have multiple member functions, having the same name but different parameters and programmers

C Program code to Subtract two matrices -
C language read elements in two matrices and find the difference of two matrices. Subtract two matrices in C. Elements of two matrices can only be subtracted if and only...

C Program Find ASCII value of a Character -
ASCII value represents the english characters as numbers, each letter is assigned a number from 0 to 127. For example, the ASCII value for uppercase X is 88. This program takes the