以下程序中函数fun()的功能是构成一个如图所示的带头结点的单向链表,在结点的数据域中放入了具有两个字符的字符串。函数disp的功能是显示输出该单向链表中所有结点中的字符串。请填空完成函数disp。
[*]
#include <atdio.h>
typedef struct node /*链表结点结构*/
char sub[3];
struct node * next;
Node
Node ~un(char s) /*建立链表*/
......
void disp(Node * h)
Node * Ps
p=h->next;
while( )
printf("%s\\n",p->suh);p= ;
main( )
Node * hd;
hd = fun( ); disp(hd) ;prinff(" \\n" );