The DSA Standard Library for C: Open-source collection of efficient data structures & algorithms, fostering easy integration & reliable coding. Join us!
The array data structure is a collection of elements of the same type, stored in contiguous memory locations. Each element can be accessed using its index, starting from 0.
This repository provides a basic implementation of an array data structure in C, along with various functions to manipulate and work with arrays.
Creates a new array with the specified capacity.
Frees the memory occupied by the array.
Resizes the array to the new specified capacity.
Returns the element at the specified index in the array.
Sets the value of the element at the specified index in the array.
Checks if the array is empty.
Returns the current size (number of elements) of the array.
Returns the current capacity of the array.
Inserts an element with the given value at the specified index in the array.
Deletes the element at the specified index in the array.