在C中,我尝试学习队列数据结构并将指针指向结构,但在结构内部存在指向数组的指针。这里queue是结构,q是指向struct和内部结构有rear,front,num和int *que使用 queue->que=malloc(sizeof(int)12) ; to make arrray And to access it,
q->que[q->rear++] //not to familiar,
GCC不返回任何错误或警告。输入密码超过21个字符后,程序会发生段错误。 起初我: hash_p = SuperFastHash(query.pwd, strlen(query.pwd));
从GCC得到这样的警告: warning: assignment makes pointer from integer without a cast [-Wint- conversion]
hash_p