#include<iostream>
#include<conio.h>
using namespace std;
struct node
{
int info;
node *left,*right;
};
int main()
{
struct node *root;
root=NULL;
//root->info=NULL;
//root = (struct node*)malloc(sizeof(struct node));
if(root==NULL) //cout<<root->info;
cout<<root->info<< " "<<root->left<<" "<<root->right<<"\n";
getch();
return 0;
}
why it is giving an error?