+ 1
program on binary tree please help. my code is shown below......sololearn isn't showing input......
#include <stdio.h> #include<malloc.h> struct node { int data; struct node *lchild; struct node *rchild; }; struct node* newnode(struct node *r,int k); void inorder(struct node *r); struct node *findpos(struct node *r,struct node *p); int main() { int n,i,k; struct node *root; root=NULL; printf("Enter n : "); scanf("%d",&n); for(i=0;i<n;i++) { printf("\n enter value : "); scanf("%d",&k); root=newnode(root ,
1 Réponse
+ 5
What kind of a error is displayed at the exit?