#include using namespace std; struct Node {    int data;    struct Node *next; }; struct Node* head = NULL; void insert(int newdata) {    struct Node *newnode = (struct Node *)malloc(sizeof(struct Node));    struct Node *ptr = head;    newnode->data = newdata;    newnode->next = head;    if (head!= NULL) {       while (ptr->next != head)       ptr = ptr->next;       ptr->next = newnode;    } else    newnode->next = newnode;    head = newnode; } void display() {    struct Node* ptr;    ptr = head;    do {       cout<data <<" ";       ptr = ptr->next;    } while(ptr != head); } int main() {    insert(3);    insert(1);    insert(7);   insert(3);    insert(1);    insert(7);    cout<<"The circular linked list is: ";    display();    return 0; }