單項選擇題已建立一單向鏈表,指針變量p1指向鏈表中某一節(jié)點,p2指向下一節(jié)點,將p2所指節(jié)點從鏈表中刪除并釋放的語句為()。

A.p1=p2;free(p2
B.p1–>next=p2–>next;free(p2
C.p1.next=p2.next;free(p2
D.p1=p2–>next;free(p2


您可能感興趣的試卷

你可能感興趣的試題

4.單項選擇題若有以下定義語句:structstudent{intnum;charname[9];}stu[2]={1,"zhangsan",2,"lisi"};則以下能輸出字符串“l(fā)isi”的語句是()。

A.printf("%s",stu[0].name)
B.printf("%s",&stu[1].name)
C.printf("%s",stu[1].name[0])
D.printf("%s",&stu[1].name[0])