runtime error
Runtime error in printing tree
it was a NULL pointer exception, fixed it
if your doubt is resolved please mark it as resolved
Can you tell me line of error
in the code i have fixed it, u needed to check
if(ptr == NULL)
{
return;
}
it’s giving the same runtime error
hi @Saurabh10 i ran my code and it runs perfectly, can you tell me a test case where you are getting the error
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.