Hi guys,

I tried to understand calloc function in c language I have gone through the many pages but I do not understand fundamental What is Calloc in C?

Code:
#include<stdio.h>#include<stdlib.h>


int main() {


    int* a = (int*) calloc(5, sizeof(int));


    return 0;
}
I understand malloc if there was malloc that means allocate memory for five elements that is integer

What's is use of Calloc in memory allocation ?