Is calloc same as malloc with memset?? or is there any difference
char *ptr;
ptr=(char *)calloc(1,100)
or
char *ptr;
ptr=(char *) malloc(100);
memset(ptr,0,100);
Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...
No comments:
Post a Comment