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?
I understand malloc if there was malloc that means allocate memory for five elements that is integerCode:#include<stdio.h>#include<stdlib.h>
int main() {
int* a = (int*) calloc(5, sizeof(int));
return 0;
}
What's is use of Calloc in memory allocation ?