0
I m a beginner in data structures and I started with linked list! Help me what are the mistakes in this code, post yrs for refer
3 odpowiedzi
+ 4
you have not printed anything using cout ... so there is nothing to display but no output suggest that code is compiled without error
+ 3
Captain X it should be NULL instead of Null... one more issue was there on usage of new which I mentioned with below code as comment of the statement for new
Node *head = NULL; //global variable
Node *ptr = new Node();//here also, only ptr variable is enough...you were doing ptr->
which is not correct
ptr->link=NULL;
0
Shld it show no Output?