✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Elem *tmp = new Elem;
tmp->info = value;
if (L != NULL)
{
Elem *T = L;
while (T->link != L)
T = T->link;
T->link = tmp;
}
else
{
L = tmp;
}
tmp->link = L;