logo

Crowdly

Adott: typedef struct {     int capacity;     int top;     int *elements...

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

Adott:

typedef struct {

    int capacity;

    int top;

    int *elements;

} Stack;

és az alábbi függvény:

bool isEmpty(Stack stack) {

    return stack.top == -1;

}

Az isEmpty függvény true értéket ad vissza, ha a verem  nem tartalmaz egyetlen egy 0-ás elemet sem.

0%
100%
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!