阿摩線上測驗 登入

試題詳解

試卷:108年 - 新北市國中資訊科技科#77060 | 科目:教甄◆資訊科技概論專業(電腦科)

試卷資訊

試卷名稱:108年 - 新北市國中資訊科技科#77060

年份:108年

科目:教甄◆資訊科技概論專業(電腦科)

20. 下列程式碼片段何者執行雙向鏈結串列的節點刪除(this 指向目前節點,pre 及 next 分別指向 this 之前、後節點)?
(A) this->next->pre = this->next; this->pre->next = this->pre; free(this);
(B) this->pre->next = this->pre; this->next->pre = this->next; free(this) ;
(C) this->pre->pre = this->next; this->next->next = this->pre; free(this);
(D) this->pre->next = this->next; this->next->pre = this->pre; free(this);
正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#4636826
未解鎖
Pre.    This.   Next
(共 22 字,隱藏中)
前往觀看
3
1