Skip to content

Queue_GetBackValue

Sancky edited this page Sep 26, 2022 · 3 revisions

Description

Get the back (last) value from an queue.

Syntax

Queue_GetBackValue(queue)

Example

new Queue:queue<10>;

Queue_InsertValue(queue, 1);
Queue_InsertValue(queue, 2);
Queue_InsertValue(queue, 3);
Queue_InsertValue(queue, 4);

printf("Queue last value is %d.", Queue_GetBackValue(queue));

Returns

Returns the back (last) value from the queue, otherwise INVALID_QUEUE_VALUE.

Clone this wiki locally