2 votes 2 votes Consider the following routine on binary tree void do(struct btnode *t) { if(t) { Do(t->Rightchild); Do(t->Leftchild); swap(t->Rightchild,t->Leftchild); } } 1) What does Do(t) do on following binary tree after running the code? a) b) DS data-structures binary-tree + – srestha asked Oct 28, 2017 edited Oct 28, 2017 by srestha srestha 839 views answer comment Share Follow See all 9 Comments See all 9 9 Comments reply Show 6 previous comments srestha commented Oct 29, 2017 reply Follow Share but when pointer find NULL, will it swap? 0 votes 0 votes joshi_nitish commented Oct 29, 2017 reply Follow Share @srestha, null is also a address(0) by definition.....so no problem in swapping some other valid address(!=0) with null(0) 1 votes 1 votes Hira Thakur commented Nov 18, 2017 reply Follow Share anyone explain plz how the function calling is done in given tree?? 0 votes 0 votes Please log in or register to add a comment.