ArrayList/ArrayList.c
int removeArrayListElement(ArrayList* list) {
    if (list == NULL)
        return -1;
    
    if (list->size == 0)
        return -1;
    list->elements[--list->size] = NULL;
    return 0;
}
/**
* Removes the final element of the list, returns -1 on error
*/
Removes the final element of the list, returns -1 on error
Removes the final element of the list returns - 1 on error
int removeArrayListElement(ArrayList* list) {
    if (list == NULL)
        return -1;
    if (list->size == 0)
        return -1;
    list->elements[--list->size] = NULL;
    return 0;
}
int removeArrayListElement ( ArrayList * list ) { if ( list == NULL ) return -1 ; if ( list -> size == 0 ) return -1 ; list -> elements [ -- list -> size ] = NULL ; return 0 ; }
Removes the final element of the list, returns -1 on error
Removes the final element of the list returns - 1 on error