typedef struct tree* RB;
so i guess it is *top in the code;
and in that code i played with structure if i remove any one element from
struct tree
{
int data,color;
struct tree...
Type: Posts; User: ketav
typedef struct tree* RB;
so i guess it is *top in the code;
and in that code i played with structure if i remove any one element from
struct tree
{
int data,color;
struct tree...
i am getting real mad now
i debugged it using devcpp it never crashes :????????????
when i ran it normally it crashed after entering third variable.
Can someone run this code and tell me...
WOW
now i stopped working on that and used cpp instead that code works fine.
but now i was implementing very simple hash table with chaining.
in this code again the program crashed after inserting...
this is a code for insert in bst that i have written
but while inserting third element in the tree the program crashes
and i found out the error is in red statement if i remove it the program runs...
thank you every body who tried to answer my question but specially @vart who cleared my doubt and i didnt read what is written below vart's post but thanx everybody i love this forum
#include<stdio.h>
#include"alloc.h"
struct node
{
int data;
struct node *link;
};
void main()
{
struct node *p,*q,*r;