answersLogoWhite

0

calloc is memory allocation function that is normally used for requesting memory space at run time 4 storing data types such as arrays and structures. calloc allocates multiple blocks of storage, each of the same size and then sets all bytes to zero, and then returns a pointer to the memory.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Which function should be used to free the memory allocated by calloc?

Use the free function to release memory that was previously allocated by malloc, calloc or realloc.


What is d command for squareroot in C programming?

There are no commands in C-programming, you should use function sqrt from math.h


What is the return type of calloc function?

the return type is void


What is a sizeof function in C programming?

Sizeof is an example.


Is combination a library function in c language of programming?

No.


71 Which function should be used to free the memory allocated by calloc?

free() is a function used to free the memory allocated dynamically ,by both malloc and calloc functions. free(ptr): ptr is a pointer to a memory block which has already been creeated by malloc or calloc.


What is fncn in C programming?

1. identifier 2. short for function


What is the function of square root in C programming?

it is sqrt in header math.h


Is it True malloc function allocates a single block of storage space and sets all bytes to zero in C programming language?

The first part is true (malloc allocates a single block of storage) but the second part is not. Malloc is for allocating un-initialized memory. calloc initializes all bytes to 0.


What is the difference between a precondition and postcondition in C programming?

In C programming, a precondition is a condition that must be true before a function is called, while a postcondition is a condition that is guaranteed to be true after the function has been executed.


What is the type of the pointer returned by calloc function?

'void *' (or 'char *' if your system is very old)


What is the approach of C programming known as?

Sequential style, or function-oriented. Which is opposed to object-oriented, as in C++.