if two trees are identical

closed account (Nwb4iNh0)
Why we pass two parameters/pointers in bool function when we want to create function to identify if two trees are identical ?
and when we call this function in main body we should call it with

bool areTreesIdentical (root1, root2)???



 
  bool areTreesIdentical(Node *a, Node *b)
Please try to make just one thread in the future:
http://www.cplusplus.com/forum/beginner/280024/
Topic archived. No new replies allowed.