# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### C Program to Calculate Sum & Average of an Array

Calculate Display the Grade of the Student -
To calculate "grade of a student" on the basis of his total marks in C++ Programming, ask to the user to enter marks obtained in some subjects (5 subjects here). To calculate grade

C++ Uses Naor Reingold Pseudo Function -
A C++ Program to genrate random numbers using Naor-Reingold random function. Moni Naor and Omer Reingold described efficient constructions for cryptographic primitives in

Finding all Roots of a Quadratic Equation -
Find all roots of a quadratic equation using if else. Input coefficients of quadratic equation from user. Store it in some variable say a, b, c. Find Discriminant of the an Equation, using...

Program to Accept Paragraph Using Scanf -
C Language program accept paragraph using scanf. 'Scanf' accept Characters entered with spaces and it also accepts the words, newline characters. 'Represent' that all characters are

Check Whether Two Strings are Anagrams -
Program takes two strings as input & checks whether two strings are anagrams. Take two strings as input and store them in the arrays array1[] array2[] respectively. In the function

C++ Language & Concatenate Two Strings -
Combined two strings means add both string with each other, perform this operation using 'library function' or without library function. If first string is 'john' and second string is porter

C Program to find Transpose of a Matrix -
C program to read elements in a matrix and find transpose of the given matrix. How to find transpose of a given matrix in C. Input elements in matrix A from user. Declare...

C++ Codings Sample Heap Sort Algorithm -
The 'Heapsort' is a comparison-based sorting algorithm. 'Heapsort' can be thought of as an improved 'Selection Sort': like that algorithm, it divides its input into a sorted & an unsorted