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 isFull(Stack stack) {

    return stack.top == stack.capacity-1;

}

A isFull függvény akkor tér vissza true értékkel, ha a verem már elérte a maximális kapacitását, vagyis több elemet már nem lehet beletenni.

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