struct code

Aug 28, 2014 at 4:48pm
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();
   }
Aug 28, 2014 at 5:10pm
Aug 28, 2014 at 5:14pm
Moved my response to that other thread.
Last edited on Aug 28, 2014 at 5:15pm
Topic archived. No new replies allowed.