# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### Accessing 2-D Array Elements In C Programming

C Program Code Find Transpose of Matrix -
In this c program, user is asked to entered the number of rows r and columns c. The value of r and c should be less than 10 in this program. The user is asked to enter elements of the...

Find an Input Substring in an input main -
C Programming example code to find an input substring in an input main string. The given sub-string is present in the main string. The given sub-string is not present in the...

Program Convert Hexadecimal to Decimal -
To convert a number from "hexadecimal" into equivalent decimal format "in C++", enter the hexadecimal number to convert it to decimal to display the equivalent value in "decimal" as

Determine if a given Matrix is a Sparse or -
C Program determines the given matrix is a sparse matrix. Sparse matrix is a matrix with the majority of its elements equal to zero. Accept matrix and checks whether the given

C++ Codings Find the Maximum Subarray -
Implement the 'naive method' to find the sub array having a maximum sum. The worst case time 'Complexity' of the algorithm is 'O(n*n)'. Take the input of the 'integer array'. Compare

C Find the Areas of Different Geometrical -
C Program code finds the Areas of different Geometrical Figures. The program is menu driven program. This has 4 options that can be choosen by the user. Area of Circle, Area

C Display Nodes of a Linked list in Reverse -
C Program uses recursive function & reverses the nodes in a Linked list and displays the list. Linked list is an ordered set of data elements, each 'containing a link' to its successor. This C

Find Factorial of a Number with Recursion -
C program to find factorial of a number using recursion. The factorial of a 'positive number' n is given by: factorial of n (n!) = 1*2*3*4....n The factorial of a 'negative number' does not