问题
填空题
以下程序段用以统计链表中元素的个数。其中first指向链表第一个结点,count用来统计结点个数。请填空。 struct link { char data; struct link * next; } struct link * p,* first; | int count=0; p=first; while( 【17】 ) { 【18】 ; p= 【19】 ; }
答案
参考答案:[17]p!=NULL
解析:[18]count + +[19](* p).next