單項(xiàng)選擇題
A.2m B.m C.2m+1 D.m/2
A.40 B.31 C.34 D.35
A.7≤i≤10 B.11≤i≤15 C.9≤i≤14 D.6≤i≤9
A.-1 B.ABDABC C.AB D.1
A.1 B.0 C.“abAaba” D.-1
A.隊(duì)列是后進(jìn)先出 B.棧的特點(diǎn)是后進(jìn)后出 C.棧的刪除和插入操作都只能在棧頂進(jìn)行 D.隊(duì)列的刪除和插入操作都只能在隊(duì)頭進(jìn)行
A.top->data=x; B.top=top->next; C.x=top->data; D.x=top->data;top=top->next;
A.x=top->data;top=top->next; B.top=top->next;x=top->data; C.x=top->next;top=top->data; D.top->next=top;x=top->data;
A.hgfe B.gfeh C.fgeh D.ehfg
A.(n+1)/2 B.n C.2n D.n-i
雙向循環(huán)鏈表結(jié)點(diǎn)的數(shù)據(jù)類型為: 設(shè)p指向表中某一結(jié)點(diǎn),要顯示p所指結(jié)點(diǎn)的直接前驅(qū)結(jié)點(diǎn)的數(shù)據(jù)元素,可用操作()。
A.printf(“%d”,p->next->data); B.printf(“%d”,p->prior->data); C.printf(“%d”,p->prior->next); D.printf(“%d”,p->data);