Which of the following statements allocates an array of 100 floats and sets them to 0.0?

A. calloc(sizeof(float)
B. calloc(100 * sizeof(float)
C. malloc(100 * sizeof(float)
D. calloc(100, sizeof(float)
E. malloc(100, sizeof(float)


Answer: D

Computer Science & Information Technology

You might also like to view...

Depending on the size of an image, rendering a bitmap image to a(n) ____ image requires significant processing power from your computer.

A. raster B. integrated C. vector D. embedded

Computer Science & Information Technology

Within the IETF, the Security Area Working Group acts as an advisory board for security topics that affect the various Internet-related protocols.

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

Computer Science & Information Technology

To see if there are any typing errors in a bounding box, you can use the ____ option on the Edit menu.

a. Editorial b. Spelling and Grammar Checker c. Typos d. Check Spelling

Computer Science & Information Technology

Modern processors follow Intel's original numbering sequence.

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

Computer Science & Information Technology