-3
最近,我一直在學習算法,所以我嘗試編碼代碼。有喜歡結構指針,太多指針符號
int pop(struct node ** top_pt){
//彈出數據並且釋放內存
if (*top_pt==NULL){
printf("stack overflow\n");
exit(0);
}
struct Node *top=*top_pt;
//滿遞增
int res=top->val;
*top_pt=top->Next;
free(top);
return res;
}
某些程序這樣,是什麼樣的*
和**
指針之間的區別?
可能的重複[指針指針指針在C中工作嗎?](http://stackoverflow.com/questions/897366/how-do-pointer-to-pointers-work-in-c) – EOF
@Jean你是中國人.....? – user3437460
[無法理解記號:\ *和\ * \ *與指針]可能的重複(http://stackoverflow.com/questions/29692986/not-able-to-理解符號和指針) – ameyCU