以下哪种情况下,链表的输出结果为"rrr"? A. head->data='r', head->next->data='r', head->next->next=null B. head->data='r', head->next->data='r', head->next->next->data='r', head->next->next->next=null C. head->data='r', head->next->data='r', head->next->next->data='r', head->next->next->next->data='r', head->next->next->next->next=null D. head->data='r', head->next->data='r', head->next->next->data='r', head->next->next->next->data='r', head->next->next->next->next->data='r', head->next->next->next->next->next=null 答案解析 **A项**:链表有两个元素,输出"rr"。**B项**:链表有三个元素,输出"rrr"。**C项**:链表有四个元素,输出"rrrr"。**D项**:链表有五个元素,输出"rrrrr"。 正确答案:B