TheAlgorithms-C/data_structures/array
Ravi Shankar Reddy B 14d29d559a
fixed: 761, 762. Fixed mis-spelled header file CArray.h to carray.h (#783)
Co-authored-by: Ravi Shankar Reddy Bommana <ravishankarreddy.bommana@citrix.com>
2021-01-24 23:04:33 -06:00
..
README.md fix: md style (#779) 2021-01-01 20:12:34 -06:00
carray.c fixed: 761, 762. Fixed mis-spelled header file CArray.h to carray.h (#783) 2021-01-24 23:04:33 -06:00
carray.h manually rename folder and files to lower-case 2020-05-30 14:25:30 -04:00
carray_tests.c fixed: 761, 762. Fixed mis-spelled header file CArray.h to carray.h (#783) 2021-01-24 23:04:33 -06:00

README.md

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