TheAlgorithms-C/data_structures/Array
2020-05-15 12:29:47 +05:30
..
CArray.c Refactor 2018-10-08 21:18:35 +05:30
CArray.h Refactor 2018-10-08 21:18:35 +05:30
CArrayTests.c Update CArrayTests.c (#418) 2019-11-02 23:46:45 +05:30
README.md Added definition or meaning of "Sort Function". 2020-05-15 12:29:47 +05:30

Array

Simple array of integers. With I/O functions, Sort Functions and Search Functions.

#Sort Function

The Sort function sorts the elements in the range in a particular order. The different types of sorting methods are Bubble Sort, Selection Sort, Merge Sort and Quick Sort. Bubble Sort repeatedly sorts the adjacent elements if they are in wrong order.

Structure

typedef struct CArray {
		int *array;
		int size;
	} CArray;

Files

  • CArray.c - Array Implementations
  • CArray.h - Import for Usage
  • CArrayTests.c - Usage Examples and tests