摘要:
转自:http://www.cnblogs.com/rain-lei/p/3590561.html最近偶尔看到一篇关于Linus Torvalds的访问,大神说大部分人都不理解指针。假设被要求写一段链表删除节点的程序,大多数的做法都是跟踪两个指针,当前指针cur和其父节点pre,这种实现很容易理解,但是并没有用到指针的精髓。Linus是怎么写的呢,且看源代码//链表之two star programming#include typedef struct node{ int value; struct node *next;}listNode; listNode *insert(l... 阅读全文