notes tnode *tempif( !nullswaptree( -> child)swaptree( ->rchild)temp -> childp-> child ->rchildp->rchild tempthe following function checks whether the two binary trees are equal or not boolean equal(tnode * tnode * boolean ansif(( =null&( =null)ans trueelse if((( ==null)&&( !=null))||(( !=null)&&( ==null))ans falseelse while(( !null&( !null)if( !null&( !null)if((equal( -> child, -> child)ans equal( ->rchild, ->rchild)else ans falseelse ans falsereturn(ans)the following function creates exact copy of given binary trees tnode *copytree(tnode *ptnode *qif( =nullreturn(null)else lovely professional university