# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### C Programming Code - Array concatenation program in C

Checking Whether Number is Even or Odd -
In this example, if...else statement is used to check whether a number entered by the user is "even or odd". Integers which are perfectly "divisible by 2" are called even numbers. And

C Code Convert Days to Years Weeks Days -
C program to input number of days from user and convert it to years, weeks and days. How to convert days to years, weeks in C. Input days from user. Store it in some variable say...

C Program Code Find the Length of String -
C Program calculate length of string without using strlen() function. You can use standard library function 'strlen()' to find the length of a string, this C program computes the length

Print Day of Week Name with Switch Case -
C program code input week number(1-7) and print day of week name using switch case. C program to find week day name using switch case. Input day number from user. Store it in

C Implement Binary Tree using Linked List -
Program implements binary tree using linked list. Binary Search tree is binary tree in which each Internal Node x stores an element such that the element stored in the left subtree of

Counting program code in The C language -
Counting is sequence of whole numbers in ascending order without zero. Developing a program of counting in C language is easy and we shall see here in this chapter. Count

C Find Volume & Surface Area of Cylinder -
This C Program code calculates volume and surface area of cylinder. The formula used in this C Program 'Surface_area' = 2 * Pi * r * (r + h) & Volume = Pi * r * r * h where Pi = 22/7.

Finding the Edge Connectivity of a Graph -
C++ Program to find edge connectivity of a graph. An edge in an undirected connected graph is a bridge if removing it disconnects the graph. For a "disconnected undirected"