logo

Crowdly

Ha adott: typedef struct { int capacity; int front; int re...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Ha adott:

typedef struct {

int capacity;

int front;

int rear;

int *elements;

}CircularQueue_t;

és az alábbi állítások igazak a megadott programra:

enqueue - egy új elemet helyez el egy cirkuláris sorban (körkörös queue).

createQueue - létrehoz egy cirkuláris sort adott kapacitással.

display - kiírja a sor aktuális tartalmát egy-egy szóközzel elválasztva.

Mit ír ki a következő program? 

int main(void)

{

    CircularQueue_t queue;

    createQueue(3, &queue);

    enqueue(&queue, 3);

    enqueue(&queue, 7);

    enqueue(&queue, 2);

    display(queue);

}

More questions like this

Want instant access to all verified answers on moodle.ms.sapientia.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!