 # C Programming Code Examples

## C > Arrays and Matrices Code Examples

### find the sum of opposite diagonal elements of a matrix

Code Searchs for an Element in Linked List - C program search for an element in the linked list using recursion. Uses recursive function & search for an element in a Linked List. Linked List is an Ordered set of Data Elements, each

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

Check the Number is Prime or Not in C++ - To check the number is a "prime number" or not a prime number in C++, enter a number and 'start checking' for prime number. If the number is divisible by 2 to one less than that

C Program Code Performing Binary Search - C program, Using Recursion, performs binary search. In this C program, an array of random number is generated. User is asked to enter a key. The array of random numbers are sorted

C Programming Codes Displaying a Table - C Language code how to display a table in C programming language is more or less similar to that of counting. We use only one iteration and increment it with value of which table is

C Code Find area of an equilateral triangle - C program code input side of an equilateral triangle from user and find area of the given triangle. How to find area of an equilateral triangle in C. Area of an equilateral triangle

C++ Codes Perform Dictionary Operations - This is a C++ Program to perform "dictionary" operations in binary search tree. In computer science, a binary search tree, sometimes also called an ordered or "sorted binary tree", is a

Exception Handling Multiple Catch in C++ - In C++ code, 'Declare and define' the function test(). Within the try block check whether the value is 'greater than zero' or not. If the value greater than zero 'throw the value' and catch