### Function that checks if a tree has only odd numbers C++

So, we have a tree with nodes that store numbers. { int data; treeNode* child; treeNode* sibling; treeNode(int data) :data(data), child(nullptr), sibling(nullptr) {} treeNode() {} }; I’m trying to check if every node stores an odd number. Example: 1 — 3 / \ 5 7 Here 1 is the root and the others are its…

Details