你这是把链表当成数组来用了。应该是
LNode *pNode=l; while(pNode!=NULL){ printf("%d\n",pNode->data); pNode=pNode->next; }
链表插入也有问题,你只为一个节点分配了内存