# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### C Programming - Second largest array element in C

Class with constructor ( for bank account ) -
Member functions of bank class. Enter the Name of the depositor, Enter the Account Number, Enter the Account Type, Enter the Amount to Deposit, Enter the amount to...

C++ Program to Perform Right Rotation -
In discrete mathematics, tree rotation is an operation on a binary tree that changes the structure without interfering with the order of the elements. A tree rotation moves one

C++ Implement Stack using Two Queues -
This C++ program implements a "stack data" structure using two queue data structures. A stack data structure foolows the principle of LIFO(last element in first element out). Enter

Program Implement Doubly Ended Queue -
Inserting element into the "deque". Deleting element from the deque. "Insert" element in "doubly ended queue". Enter the value to be inserted. Element inserted into empty deque.

Code Print Natural Numbers from 1 to N -
Declare c recursive function to print natural numbers in a range. Lets give a meaningful name to function, "printNaturalNumbers()". Next we need to print Natural Numbers in...

C Program Code Finds Area of a Rectangle -
Input length and width of a rectangle and find area of the given rectangle. How to calculate area of a rectangle in C programming. Input length and width of rectangle. Store it in two

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 Program to Print all the Elements of Nth -
C Program code print all the Elements of nth level in single line. And adding node to binary tree. Prints all the nodes of all levels of the binary tree. Prints the nodes of a particular...