From which of the following libraries below, calloc() belongs to?

Options
- stdlib.h
- malloc.h
- calloc.h
- both a and b above


CORRECT ANSWER : both a and b above

Discussion Board
ccc test is the best test.

on line answer dene ke liye dhanyabad.

HIMANSHU SAROJ 08-4-2017 08:32 AM

Library functions

Calloc() belongs to both stdlib.h and malloc.h.
stdlib.h and malloc.h are the standard C header files.
C-inbuilt functions like calloc(),malloc(),free() are declared in these header files.

Sapna 02-14-2017 04:52 AM

Library functions

Calloc() belongs to both stdlib.h and malloc.h.
stdlib.h and malloc.h are the standard C header files.
C-inbuilt functions like calloc(),malloc(),free() are declared in these header files.

Sapna 02-14-2017 04:52 AM

calloc()

Answer : both a and b above.

The calloc() function is used to allocate storage to a variable while the program is running. The calloc() function allocates the requested memory and returns a pointer to it. The calloc function allocates a block of memory for an array.

Jayesh Sonar 02-24-2015 02:30 AM

calloc()

This function is used to allocate storage to a variable while the program is running.

Aparna 07-5-2013 03:14 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement