primes =(unsigned long *)malloc(total*sizeof(unsigned long));(unsigned long *) 是什么含义?这句话是什么含义
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/18 21:17:08
primes=(unsignedlong*)malloc(total*sizeof(unsignedlong));(unsignedlong*)是什么含义?这句话是什么含义primes=(unsign
primes =(unsigned long *)malloc(total*sizeof(unsigned long));(unsigned long *) 是什么含义?这句话是什么含义
primes =(unsigned long *)malloc(total*sizeof(unsigned long));
(unsigned long *) 是什么含义?这句话是什么含义
primes =(unsigned long *)malloc(total*sizeof(unsigned long));(unsigned long *) 是什么含义?这句话是什么含义
unsigned long *,将类型强制转换为无符号长整型指针.
这句话的意思是在堆中分配一块内存空间,空间大小为total个无符号长整型,空间首址以无符号长整型指针类型赋给primes指针.