answersLogoWhite

0


Best Answer

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

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the calloc function in C programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


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 a sizeof function in C programming?

Sizeof is an example.


Is combination a library function in c language of programming?

No.


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 function of square root in C programming?

it is sqrt in header math.h


What is fncn in C programming?

1. identifier 2. short for function


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++.


What is library function in C programming?

printf, fgets, strlen, malloc etc