Hi
I have written the following code in Turbo c++ compiler
and try to print postfix & infix, but it is displaying NULL pointer assignment
. I m not getting why it is happening. Please help me....
Thanks in advance.
#include<iostream.h>
#include<stdio.h>
void main()
{
char *infix,*postfix;
cout<<"Enter postfix exp:";
gets(postfix);
cout<<"Enter infix exp: ";
gets(infix);
cout<<endl<<endl;
puts(postfix);
puts(infix);
}