In the code given below, after the execution of whole program and displaying the circular linked list the program is going in infinite loop can you please spot the error? The code perfectly displays everything and when i remove the destructor there is no infinite loop program stops with perfect output
Read more
C++:
#include <iostream>
using namespace std;
class Node
{
public:
int data;
Node *next;
Node(int data)
{
this->data = data...
Read more