struct code

Whats the problem in this ?

1
2
3
4
5
6
7
8
9
10
11
12
 #include<iostream.h>
#include<conio.h>
struct node{ char  info;
	     node * next;
	     } ;
node *abc=new node;
abc->info='k';
void main()
{  clrscr();
   cout<<abc->info<<" "<<abc->next;
   getch();
   }
Moved my response to that other thread.
Last edited on
Topic archived. No new replies allowed.