What is the difference between doing:
ptr = (char **) malloc (MAXELEMS * sizeof(char *));
or:
ptr = (char **) calloc (MAXEL
The calloc() function that is declared in the header offers a couple of advantages over the malloc() function.
calloc()
malloc()