+ 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 ,

12th Nov 2017, 1:25 PM
Gokul Krishna
Gokul Krishna - avatar
1 Antwort
+ 5
What kind of a error is displayed at the exit?
12th Nov 2017, 1:41 PM
Vukan
Vukan - avatar