Which function allocates memory for an array by taking the number of elements…

PYQ UPPSC Computer Operator Grade B 2019

Which function allocates memory for an array by taking the number of elements and the size of each element?

  1. A.

    malloc( )

  2. B.

    realloc( )

  3. C.

    alloc( )

  4. D.

    calloc( )

Attempted by 357 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Computer Operator Grade B

Loading lesson…