C Programs - Array


An array is a collection of elements of similar data type stored at the contiguous memory location.

Array elements can be accessed using an index.
Array index starts from 0 to N-1 (where N is the size of array).

Arrays can be categorized into two categories:

  1. One-dimensional array
  2. Multi-dimensional array

Syntax to declare an array

data_type array_name[array_size];

List of programs

  1. C Program to read and print elements of array
  2. C Program to print sum of array elements
  3. C Program to print maximum and minimum element in array
  4. C Program to print second largest element in array
  5. C Program to print count of even and odd numbers in array
  6. C Program to count positive, negative and zero numbers in array
  7. C Program to copy all array elements from one array to another
  8. C Program to insert an element in array
  9. C Program to delete an element from array
  10. C Program to print frequency of each element in array