在这个问题,有人建议意见,我应该不会投的结果malloc,即
malloc
int *sieve = malloc(sizeof(int) * length);
而不是:
int *sieve = (int *) malloc(sizeof(int) * length);
为什么会这样呢?
c malloc casting
请提供一个解释示例.
c c++ pointers dereference
c ×2
c++ ×1
casting ×1
dereference ×1
malloc ×1
pointers ×1