# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### C Program to evaluate Subtraction of two matrices ( matrix ) in C

A Simple Function in C++ Programming -
A function is block of code which is used to perform a particular task, for example let's say you are writing a "Larger C++ Program", in that program you want to do a particular

Print Strong Numbers between an interval -
First give a meaningful name to our function, say "printStrongNumbers()". Along with this we must define function to find factorial of a number, say long long fact(int x);. Next we...

Program Find GCD (HCF) of Two Numbers -
Recursive function in C language to find GCD (HCF) of two numbers. Find GCD ( Greatest Common Divisor ) or HCF ( Highest Common Factor ) of two numbers using recursion in C

C Store Information Using Structures with -
C Programming example Store information using structures with dynamically memory allocation. This c program asks user to store the value of noOfRecords and allocates the

C++ Finding Median of Two Sorted Arrays -
Program find the 'median' of elements where elements are stored in 2 'different arrays'. We need to find 'combined' median of 2 different 'data set'. So it includes sorting of both arrays

Count Occurrence Positive Zero Negative -
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number

C++ Find kth Largest Element in Sequence -
A Function to build max heap from the initial array by checking all non-leaf node to satisfy the condition. And build "max-heap" k times, extract the 'maximum' and store it in the end

C Language program Print Pascal Triangle -
C program print pascal triangle up to n rows. Pascal triangle is a triangular number pattern named after famous mathematician Pascal. Where n is row number and k is term of that