malloc 和 calloc 之间的区别?

ptr = (char **) malloc (MAXELEMS * sizeof(char *));
ptr = (char **) calloc (MAXELEMS, sizeof(char*));

答案