# C Programming Code Examples

## C > Sorting Searching Code Examples

### Program to Find the Number of Nodes in a Binary Tree

Find Frequency of Each Character in String -
C Program code to 'Count Frequency' of each character in a string Using Loop. There are so many algorithms to Count Frequency of each character. Here I'm explaining the easiest one

How to check Sparse Matrix in C language -
C program to read elements in a matrix and check whether matrix is Sparse matrix or not. C code to determining sparse matrix. Sparse matrix is a special matrix with most of its...

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

Finds Factorial of Number using Recursion -
This c program prompts user for entering any integer, finds the Factorial of input number & displays the output on screen. Use a recursive user defined function to perform the task. We

Program Displays the Transpose of Matrix -
To transpose any matrix in C++ Programming language, you have to first ask to the user to enter the matrix and "replace row" by column and column by row to "transpose" that matrix

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

Code Swap first and last digit of a number -
C program to input a number from user and swap first and last digit of the given number. Input number from user, find last digit, find total number of digit - 1, find first digit. How

Convert Strings to UpperCase use Pointers -
C program to 'convert string' from Lowercase to uppercase string using loop. All characters are represented as an integer value known as "ASCII" value. Where A is represented with 65