阿摩線上測驗 登入

試題詳解

試卷:107年 - 107 國立中山大學_碩士班招生考試_電機系(丙組):資料結構#110049 | 科目:中山◆電機◆資料結構

試卷資訊

試卷名稱:107年 - 107 國立中山大學_碩士班招生考試_電機系(丙組):資料結構#110049

年份:107年

科目:中山◆電機◆資料結構

Note: There are 20 questions in total. Each one is 5 points. Please choose one answer for each question. No extra points will be deducted for wrong answers. 1. Suppose a node in a linked list A contains two fields, data and link, where link is the pointer to the following node. Let head-ptr be a pointer to the first node of A. Suppose we would like to traverse all the nodes of A by the loop "while (Ihead.ptr){B;}". What is B?
(A) head. ptr == NULL;
(B) head-pr = x(head-ptr) → link;
(C) head-ptr = head-ptr -> link;
(D) thead ptr = x(head_ptr) → link.
正確答案:登入後查看