logo

Crowdly

Browser

Add to Chrome

Adott az alábbi f üggvény dokumentáció: **  * Helyet foglal dinamikusan egy n...

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

Adott az alábbi függvény dokumentáció:

**

 * Helyet foglal dinamikusan egy n elemű tömbnek és visszatér a lefoglalt memória címével

 * @param n tömb elemeinek a száma 

 * @return a lefoglalt tömb kezdőcímét

 */

és definíció:

int *allocateMemoryForArray1(int n) {

    int *array=(int*)malloc(n*sizeof (int));

    if(!array)

    {

        printf("Memory allocation error");

        return NULL;

    }

    return array;

}

Mely kijelentések igazak?

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

Browser

Add to Chrome