struct Element{
Element() {}
int data = NULL;
struct Element* right, *left;
};
or
struct Element{
Element() {}
int data = NULL;
Element* right, *left;
};
I was working with binary trees and I was looking up on an example. In the example, Element* right
was struct Element* right
. What are the differences between these and which one would be better for writing data structures?
I was looking up from this website: https://www.geeksforgeeks.org/binary-tree-set-1-introduction/