It is an ebook about trees

源代码在线查看: create a copy of a tree.txt

软件大小: 11 K
上传用户: sbukhpak
关键词: about ebook trees It
下载地址: 免注册下载 普通下载 VIP

相关代码

				Write a C program to create a copy of a tree 
				
				Discuss it!          
				
				
				mynode *copy(mynode *root) 
				{ 
				  mynode *temp; 
				   
				  if(root==NULL)return(NULL); 
				    
				  temp = (mynode *) malloc(sizeof(mynode)); 
				  temp->value = root->value; 
				
				  temp->left  = copy(root->left); 
				  temp->right = copy(root->right); 
				
				  return(temp); 
				} 
				 
							

相关资源