✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Порівняйте два фрагменти коду. Які твердження щодо них є правдивими?1) for (Node *cur = head; cur != NULL; cur = cur->next) cout << cur->item << endl;
2) Node *cur = head; while (cur != NULL) { cout << cur->item << endl; cur = cur->next; }