Which of the following statements successfully releases an array of 100 integers?

A. free(ptr);
B. free(ptr[100];
C. free(ptr + 100;
D. for(i = 0; i < 100; i++) free(ptr + i);
E. for(i = 0; i < 100; i++) free(*ptr + 1));


Answer: A

Computer Science & Information Technology

You might also like to view...

In every version of CSS, you apply a style rule containing a list of style properties to anelement or a group of elements known as a selector.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The Expression Builder tool helps you create complex expressions.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In a doubly linked list, each node contains two pointers: a _____ and a forward pointer to its successor.

A. pointer to its successor's successor B. pointer to the head C. backward pointer to its predecessor D. pointer to the rear

Computer Science & Information Technology

What are the options that appear after the system boots from the installation media? Briefly explain each option.

What will be an ideal response?

Computer Science & Information Technology