Please don’t copy from chegg and course hero

Question Answered step-by-step Please don’t copy from chegg and course hero Please don’t copy from chegg and course hero Image transcription textQUESTION 18 Which of the following functions returns the sum of leaves of given tree? int sumleaves(tree_node* r) { if (r->left -= NULL 64 r->right-=NULL) return r->val; return sumleaves (r->left) +sumleaves (r->right) + r-oval; int sumleaves (tree node* r) { if (r= =NULL) return 0; if (r->left =… Show more… Show more  Computer Science Engineering & Technology C++ Programming Share QuestionEmailCopy link Comments (0)