Is the following code ok? It compiled without any warnings from GCC, but it looks a bit strange.
Since I'm using tnode as both the name of the struct, and for the typedef, there shouldn't be any difference between these two declarations? Shouldn't the typedef conflict with the struct declaration?Code:typedef struct tnode { int data; struct tnode *left; struct tnode *right; }tnode;
Code:tnode *node1; struct tnode *node2;