 # C Programming Code Examples

## C > Arrays and Matrices Code Examples

### program code to check symmetric matrix

C++ Program Check if it is a Sparse Matrix - This is a C++ Program code to check 'sparsity' of a matrix. If the number of zeros in a matrix exceeds (n*m)/2, n and m is the dimension of the matrix, matrix is sparse matrix. Enter the

C Code perform functions of a Calculator - C Programing code to perform functions of a calculator: factorial, addition, subtraction, multiplication, division, squares. Sum of the input numbers. The difference between the

C Calculate Difference Between Two Time - C programming code to calculate difference between two time periods. In this program, user is asked to enter two time periods and these two periods are stored in structure...

C Code strlen Return the Length of Strings - C programming string function strlen returns the "length of the string". Program code print the Length of the string. It returns the length of the string without including 'end character'

Program to Implement strpbrk() Function - Locates "first occurrence" in string string1 of any character in string string2, If a character from string string2 is found, a pointer to the character in string 'string1' is returned, if not

Program Generate All the Set Partitions of - This algorithm takes the 'Input of the Natural' number and prints all the possible partition of each number less than or equal to it. For each number, it starts with the number and breaks

C Programs Prints Prime Number Pyramid - Printing Prime Number Pyramid. To Evaluate Number is Prime or not Consecutively divide that number from 2 to n/2. To find whether 17 is 'Prime or Not' divide that number from 2 to

Strrchr searches the string in reverse order - 'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it