# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### program to find determinant of a matrix

C Swap 2 Numbers using Bitwise Operator -
Swap two number using bitwise operator in C programming. There are tons of discussions going around the internet to swap 2 numbers without using temporary variable. We can...

Convert Binary to Hexadecimal in the C++ -
To convert binary to hexadecimal in C++, you have to ask to the user to "enter any number" in binary to convert it into hexadecimal, then display the equivalent hexadecimal value on

Implementing Circular Doubly Linked List -
'Memory allocated' for node dynamically and inserts element at beginning. Inserts elemnet at last. Inserts element at position and delete node at particular position. Update value of a

C Program convert Decimail nos to Roman -
Convert decimail nos to roman equivalent upto 10,000. Function for generating roman equivalent of 1000's. Function for generating roman eq of 100's. Function for generating...

C++ Using The If Else Ladder Else If Clause -
The "expressions" are evaluated in order; if an expressionis true, the 'statement' or 'block of statement' associated with it is executed, and this terminates the whole chain. The Code for

C Programming Writing a Character to file -
In C to write the file, we must open the file in a mode that supports writing. For example, if you open a file in "r" mode, you won't be able to write the file as "r" is read only mode that

Find sum of prime numbers in given range -
C program to find sum of all prime numbers between 1 to N. Input Lower and Upper limit from user. Find prime numbers in the range. Check if the current number x is Prime or not.

Code to Self Balancing Binary Search Tree -
Make the "Tree Logically" empty, insert data and get "height of node". Function to max of left/right node, insert data recursively. Rotate binary tree node with left child. Rotate binary