Calloc with structure with pointers in C
问题 I know that calloc request memory to be used, writes 0 on all the bits and then returns a pointer to it. My question is: if I use calloc with a structure that contains pointers, will those pointers have the NULL value or do I have to set them to point to NULL? struct a{ char * name; void * p; }* A; So basically, will name and p point to NULL after I've used calloc with struct a? Thanks! 回答1: Somehow you've gotten a lot of incorrect answers. C does not require the representation of null