 # C Programming Code Examples

## C > Arrays and Matrices Code Examples

### Check whether entered matrix is magic square or not ?

Check if Given Binary Tree is an AVL Tree - This is a C++ Program to check if BST is AVL. An AVL tree is a self-balancing binary search tree. It was the first such data structure to be invented. In an "AVL tree", the heights of the

Code Finds Area & Circumference of Circle - C Program code to find area & circumference of circle. In this program we have to calculate the area and circumference of the circle. Two formulas for finding Circumference and Area

Code to find Sum of Digits using recursion - Write a Recursive Function in C Language to calculate sum of digits of a number. Declare Recursive Function to find sum of digits of a number. First give a meaningful name to the

C++ Program Finds the Transitive Closure - C++ Program to find the trnasitive closure of a given graph. In mathematics, the transitive closure of a binary relation R on a set X is the "transitive relation" R+ on set X such that R+

C Language A Puzzle Finding the Number - The main logic lies in displaying the numbers in the screen. The X & Y coordinate of each function is calculated with respect to mx "maximum of x value" & my "maximum of y

Check a Given Number is Perfect Number - This C program code checks whether a given number is perfect number. Perfect number is a number which is equal to sum of its divisor. For eg,divisors of 6 are 1,2 and 3. The sum of

Evaluates the Value of Any Polynomial of - Give the degree of the polynomiala. Give the value of the coefficients. Give the value of the coefficients. Give the values of the coefficient of polynomialb. Give value to be substituted

Copy One String to Another use Recursion - C Language Program code to copy one string to another using recursion. The Program uses recursive function and copies a string entered by user from one 'Character Array' to another