# C Programming Code Examples

## C > Sorting Searching Code Examples

### find the Total Columns/Vertical Lines of a given Binary Search Tree

C++ Language & One Time Pad Algorithm -
C++ program encodes any message using the technique of 'One time' pad cipher technique. Input is not Case Sensitive and works only for all characters. 'White Spaces' are not ignored

Efficient Implementations of Disjoint Sets -
numElements is the initial number of disjoint sets. Union "Two Disjoint" sets. For simplicity, we assume "root1 and root2" are distinct and represent set names. "root1" is the root of set

C Program to Open, Read & Close the File -
C various file opening modes: File is opened using fopen() c function, while opening you can use any of the following mode as per the requirement. Mode "r": It is a read only mode,

C Sum of Row & Column of a MxN Matrix -
C Program finds the sum of each row & each column of a MxN matrix. The c program code accepts an MxN matrix. Then adds each row of the matrix and also adds each column of...

C Code Sorts Set of Strings in Alphabetical -
In this program, user would be asked to enter a set of Strings and the program would sort & display them in Ascending alphabetical order. This C program would sort the input strings in

Shortest Path Between two Vertices Using -
This is a C++ Program to check whether path exists between two given nodes. The idea is to run the 'Depth First search' algorithm with the given source node, if during 'dfs' we visit

Read and write Strings Printf() and Scanf() -
Compare 2 strings, 'Concatenate Strings' and copy one string to another & perform various 'string manipulation operations'. We perform such operations using 'pre-defined' functions

Programs to Traverse the Tree Recursively -
C Coding, using recursion, performs traversal operation across the nodes in a tree. The tree we have used is the "Binary Search Tree". The user "Generates a Tree" by inserting integers.