logo

Crowdly

Browser

Add to Chrome

Az alábbi függvény egy egydimenziós tömb helyfoglalására kellene szolgáljon, de ...

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

Az alábbi függvény egy egydimenziós tömb helyfoglalására kellene szolgáljon, de három sora hibát tartalmaz. Melyek ezek?

1. void allocateMemoryForArray(int

n,**dpArray) {

   2.  *dpArray = (int

*) malloc(n * sizeof(int);

  3.   if (!(*dpArray))

{

     4.    printf(“ERROR”);

      5.   exit(-1);

    }

   6.  return (*dpArray);

}

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