I'm trying to understand some of the distribution code
typedef struct person { struct person *parents[2]; char alleles[2]; } person; person *create_family(int generations); int main(void) { person *p = create_family(GENERATIONS); } Why do we have to put the star operator inside of our prototype. Is it always necessary to include the star operator inside of prototypes?
https://stackoverflow.com/questions/66511533/questions-about-functions-that-return-pointers March 07, 2021 at 06:56AM
没有评论:
发表评论