问答题
算法填空。 /*copy a character string from。from‘to。to。’/ void copystring(to, from) char*to,*from; {while(*from) { (1) ;++from; (2) ;) *to=‘\0’; } /*search a linked list for specified value*/ struct listrec{int value; struct listrec*next;) struct listrec*search(listptr,match) struct listrec*listptr; int match; {while(listptr!= (3) ) 1f( (4) ==match) break; else (5); return(1istptr); } 【中国海洋大学2006四(10分)】
【正确答案】正确答案:(1)*to:*from (2)++to (3)null (4)listptr一>value (5)return(null)
【答案解析】