mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-28 16:23:10 +03:00
14d29d559a
Co-authored-by: Ravi Shankar Reddy Bommana <ravishankarreddy.bommana@citrix.com> |
||
---|---|---|
.. | ||
carray_tests.c | ||
carray.c | ||
carray.h | ||
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