Recently, I've been learning algorithms, so I try to code leetcode. There are some programs like
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;
}
so, what is the difference between the pointers like *
and **
?