Skip to content

SortArray_Count

Sancky edited this page Oct 18, 2022 · 1 revision

Description

Get the elements count from an sorted array.

Syntax

SortArray_Count(array[])

Example

new SortedArray:array<10>;

SortArray_Insert(array, 1);
SortArray_Insert(array, 2);
SortArray_Insert(array, 3);
SortArray_Insert(array, 4);

printf("Sorted array have %d elements.", SortArray_Count(array));

Returns

Returns the count of the elements from the sorted array.

Clone this wiki locally